diff --git a/tests/tc_auto_variable/expected_nf.txt b/tests/tc_auto_variable/expected_nf.txt new file mode 100644 index 0000000..9bf06f9 --- /dev/null +++ b/tests/tc_auto_variable/expected_nf.txt @@ -0,0 +1,4 @@ +identifiers +data v MyData data stdin 41 +dchar k +double k diff --git a/tests/tc_auto_variable/file_nf.d b/tests/tc_auto_variable/file_nf.d new file mode 100644 index 0000000..911be2a --- /dev/null +++ b/tests/tc_auto_variable/file_nf.d @@ -0,0 +1 @@ +struct MyData{} alias MyData Stuff; auto data = Stuff(); d \ No newline at end of file diff --git a/tests/tc_auto_variable/run.sh b/tests/tc_auto_variable/run.sh index dcd406e..ffe8a9f 100644 --- a/tests/tc_auto_variable/run.sh +++ b/tests/tc_auto_variable/run.sh @@ -3,3 +3,6 @@ set -u ../../bin/dcd-client $1 --extended file.d -c72 > actual.txt diff actual.txt expected.txt + +../../bin/dcd-client $1 --extended file_nf.d -c58 > actual_nf.txt +diff actual_nf.txt expected_nf.txt