Added test

This commit is contained in:
RUSshy 2021-09-08 22:29:40 +02:00 committed by GitHub
parent 97e85658cc
commit 468b636136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,4 @@
identifiers
data v MyData data stdin 56
dchar k
double k

View File

@ -0,0 +1,4 @@
identifiers
data v weird data stdin 55
dchar k
double k

View File

@ -0,0 +1,4 @@
identifiers
data v MyData data stdin 41
dchar k
double k

View File

@ -0,0 +1 @@
struct MyData{} MyData want() { return MyData(); } auto data = want(); d

View File

@ -0,0 +1 @@
struct MyData{} auto weird(){ return MyData(); }; auto data = weird(); d

View File

@ -0,0 +1 @@
struct MyData{} alias MyData Stuff; auto data = Stuff(); d

View File

@ -0,0 +1,11 @@
set -e
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
../../bin/dcd-client $1 --extended file_crash_return_auto.d -c72 > actual_crash_return_auto.txt
diff actual_crash_return_auto.txt expected_crash_return_auto.txt