diff --git a/tests/tc057/expected1.txt b/tests/tc057/expected1.txt new file mode 100644 index 0000000..8bc98d2 --- /dev/null +++ b/tests/tc057/expected1.txt @@ -0,0 +1,2 @@ +calltips +void doStuff(int a, int b) diff --git a/tests/tc057/file.d b/tests/tc057/file.d new file mode 100644 index 0000000..80072ce --- /dev/null +++ b/tests/tc057/file.d @@ -0,0 +1,8 @@ +void doStuff(int a, int b) { return; } +int getInt(int i, int[] b) { return i; } +int b(int a) { return a; } +void main(string[] args) +{ + doStuff(getInt(1, [b(3)]),); + auto x = 10, 20; +} diff --git a/tests/tc057/run.sh b/tests/tc057/run.sh new file mode 100755 index 0000000..3376eea --- /dev/null +++ b/tests/tc057/run.sh @@ -0,0 +1,5 @@ +set -e +set -u + +../../bin/dcd-client $1 file.d -c161 > actual1.txt +diff actual1.txt expected1.txt