Fix bug in libdparse that caused symbols to leak out of conditional declarations

This commit is contained in:
Hackerpilot 2016-02-01 03:02:48 -08:00
parent 5360944dfb
commit c6da941a82
4 changed files with 23 additions and 1 deletions

@ -1 +1 @@
Subproject commit 2ee91136abf935546de6bf581fd215b86d70e14e
Subproject commit 7d519dfdba1089ecefbc947b550e4fe82049f883

View File

17
tests/tc028/file.d Normal file
View File

@ -0,0 +1,17 @@
struct Bob
{
version (all)
{
}
else
{
@disable this();
}
int abcde;
}
unittest
{
ab
}

5
tests/tc028/run.sh Executable file
View File

@ -0,0 +1,5 @@
set -e
set -u
../../bin/dcd-client $1 file.d -c122 > actual1.txt
diff actual1.txt expected1.txt