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