From c6da941a823f08e3ba846cf80fc45e04cd83a94b Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Mon, 1 Feb 2016 03:02:48 -0800 Subject: [PATCH] Fix bug in libdparse that caused symbols to leak out of conditional declarations --- libdparse | 2 +- tests/tc028/expected1.txt | 0 tests/tc028/file.d | 17 +++++++++++++++++ tests/tc028/run.sh | 5 +++++ 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 tests/tc028/expected1.txt create mode 100644 tests/tc028/file.d create mode 100755 tests/tc028/run.sh diff --git a/libdparse b/libdparse index 2ee9113..7d519df 160000 --- a/libdparse +++ b/libdparse @@ -1 +1 @@ -Subproject commit 2ee91136abf935546de6bf581fd215b86d70e14e +Subproject commit 7d519dfdba1089ecefbc947b550e4fe82049f883 diff --git a/tests/tc028/expected1.txt b/tests/tc028/expected1.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/tc028/file.d b/tests/tc028/file.d new file mode 100644 index 0000000..ac3e7fe --- /dev/null +++ b/tests/tc028/file.d @@ -0,0 +1,17 @@ +struct Bob +{ + version (all) + { + } + else + { + @disable this(); + } + + int abcde; +} + +unittest +{ + ab +} diff --git a/tests/tc028/run.sh b/tests/tc028/run.sh new file mode 100755 index 0000000..64bebe8 --- /dev/null +++ b/tests/tc028/run.sh @@ -0,0 +1,5 @@ +set -e +set -u + +../../bin/dcd-client $1 file.d -c122 > actual1.txt +diff actual1.txt expected1.txt