diff --git a/tests/actual.txt b/tests/actual.txt deleted file mode 100644 index e69de29..0000000 diff --git a/tests/tc027/expected1.txt b/tests/tc027/expected1.txt new file mode 100644 index 0000000..a1254f5 --- /dev/null +++ b/tests/tc027/expected1.txt @@ -0,0 +1,9 @@ +identifiers +C l +alignof k +i v +init k +mangleof k +sizeof k +stringof k +tupleof k diff --git a/tests/tc027/file.d b/tests/tc027/file.d new file mode 100644 index 0000000..ed2da0d --- /dev/null +++ b/tests/tc027/file.d @@ -0,0 +1,10 @@ +struct Foo(C) +{ + int i; +} + +unittest +{ + auto foo = Foo!int(); + foo. +} diff --git a/tests/tc027/run.sh b/tests/tc027/run.sh new file mode 100755 index 0000000..d9fe1a8 --- /dev/null +++ b/tests/tc027/run.sh @@ -0,0 +1,5 @@ +set -e +set -u + +../../bin/dcd-client $1 file.d -c66 > actual1.txt +diff actual1.txt expected1.txt