From 9bdce655db6663010080549346a22876d68d844b Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Sat, 29 Aug 2015 03:32:56 -0700 Subject: [PATCH] Test case for #251 --- tests/tc020/expected1.txt | 2 ++ tests/tc020/file.d | 12 ++++++++++++ tests/tc020/run.sh | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 tests/tc020/expected1.txt create mode 100644 tests/tc020/file.d create mode 100755 tests/tc020/run.sh diff --git a/tests/tc020/expected1.txt b/tests/tc020/expected1.txt new file mode 100644 index 0000000..6f437c1 --- /dev/null +++ b/tests/tc020/expected1.txt @@ -0,0 +1,2 @@ +calltips +this(int[] array, int*[] arrayOfPointers, int* pointer, int plain) diff --git a/tests/tc020/file.d b/tests/tc020/file.d new file mode 100644 index 0000000..138e0f7 --- /dev/null +++ b/tests/tc020/file.d @@ -0,0 +1,12 @@ +struct TestStruct +{ + int[] array; + int*[] arrayOfPointers; + int* pointer; + int plain; +} + +unittest +{ + auto ts = TestStruct( +} diff --git a/tests/tc020/run.sh b/tests/tc020/run.sh new file mode 100755 index 0000000..2919cb5 --- /dev/null +++ b/tests/tc020/run.sh @@ -0,0 +1,5 @@ +set -e +set -u + +../../bin/dcd-client file.d -c122 > actual1.txt +diff actual1.txt expected1.txt