diff --git a/dsymbol b/dsymbol index e0d4828..c9ac0cb 160000 --- a/dsymbol +++ b/dsymbol @@ -1 +1 @@ -Subproject commit e0d4828006b258c1d25a421677fc8527bd766a05 +Subproject commit c9ac0cbf1a4496c2c015829bf08fd96c08c53ff7 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/expected2.txt b/tests/tc020/expected2.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/tc020/file.d b/tests/tc020/file.d new file mode 100644 index 0000000..b166374 --- /dev/null +++ b/tests/tc020/file.d @@ -0,0 +1,23 @@ +struct TestStruct +{ + int[] array; + int*[] arrayOfPointers; + int* pointer; + int plain; +} + +class TestClass +{ + int a; + int b; +} + +unittest +{ + auto ts = TestStruct( +} + +unittest +{ + auto tc = new TestClass( +} diff --git a/tests/tc020/run.sh b/tests/tc020/run.sh new file mode 100755 index 0000000..8751e55 --- /dev/null +++ b/tests/tc020/run.sh @@ -0,0 +1,8 @@ +set -e +set -u + +../../bin/dcd-client file.d -c159 > actual1.txt +diff actual1.txt expected1.txt + +../../bin/dcd-client file.d -c199 > actual2.txt +diff actual2.txt expected2.txt