From ffe2e788962fdc9ac41e7180d80e0b47c8410d8c Mon Sep 17 00:00:00 2001
From: Hackerpilot <briancschott@gmail.com>
Date: Fri, 21 Aug 2015 16:36:30 -0700
Subject: [PATCH] Test cases for struct constructors

---
 tests/tc019/expected1.txt |  7 +++++++
 tests/tc019/expected2.txt |  2 ++
 tests/tc019/file.d        | 24 ++++++++++++++++++++++++
 tests/tc019/run.sh        |  8 ++++++++
 4 files changed, 41 insertions(+)
 create mode 100644 tests/tc019/expected1.txt
 create mode 100644 tests/tc019/expected2.txt
 create mode 100644 tests/tc019/file.d
 create mode 100755 tests/tc019/run.sh

diff --git a/tests/tc019/expected1.txt b/tests/tc019/expected1.txt
new file mode 100644
index 0000000..a28358e
--- /dev/null
+++ b/tests/tc019/expected1.txt
@@ -0,0 +1,7 @@
+identifiers
+alignof	k
+init	k
+mangleof	k
+sizeof	k
+stringof	k
+tupleof	k
diff --git a/tests/tc019/expected2.txt b/tests/tc019/expected2.txt
new file mode 100644
index 0000000..f4e8e03
--- /dev/null
+++ b/tests/tc019/expected2.txt
@@ -0,0 +1,2 @@
+calltips
+this(int a, int c)
diff --git a/tests/tc019/file.d b/tests/tc019/file.d
new file mode 100644
index 0000000..bd5d35e
--- /dev/null
+++ b/tests/tc019/file.d
@@ -0,0 +1,24 @@
+struct B
+{
+	int a;
+	void b();
+	int c;
+}
+
+struct A
+{
+	this()
+	{
+
+	}
+}
+
+unittest
+{
+	A.
+}
+
+unittest
+{
+	auto b = B(
+}
diff --git a/tests/tc019/run.sh b/tests/tc019/run.sh
new file mode 100755
index 0000000..83f690b
--- /dev/null
+++ b/tests/tc019/run.sh
@@ -0,0 +1,8 @@
+set -e
+set -u
+
+../../bin/dcd-client file.d -c84 > actual1.txt
+diff actual1.txt expected1.txt
+
+../../bin/dcd-client file.d -c111 > actual2.txt
+diff actual2.txt expected2.txt