diff --git a/tests/tc_auto_variable/expected.txt b/tests/tc_auto_variable/expected.txt new file mode 100644 index 0000000..d2d54ce --- /dev/null +++ b/tests/tc_auto_variable/expected.txt @@ -0,0 +1,4 @@ +identifiers +data v MyData want stdin 56 +dchar k +double k diff --git a/tests/tc_auto_variable/file.d b/tests/tc_auto_variable/file.d new file mode 100644 index 0000000..1e01168 --- /dev/null +++ b/tests/tc_auto_variable/file.d @@ -0,0 +1 @@ +struct MyData{} MyData want() { return MyData(); } auto data = want(); d \ No newline at end of file diff --git a/tests/tc_auto_variable/run.sh b/tests/tc_auto_variable/run.sh new file mode 100644 index 0000000..dcd406e --- /dev/null +++ b/tests/tc_auto_variable/run.sh @@ -0,0 +1,5 @@ +set -e +set -u + +../../bin/dcd-client $1 --extended file.d -c72 > actual.txt +diff actual.txt expected.txt