mirror of
https://github.com/dlang-community/DCD.git
synced 2025-05-14 06:48:50 +03:00
Fix bug in libdparse that caused symbols to leak out of conditional declarations
This commit is contained in:
parent
5360944dfb
commit
c6da941a82
4 changed files with 23 additions and 1 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 2ee91136abf935546de6bf581fd215b86d70e14e
|
Subproject commit 7d519dfdba1089ecefbc947b550e4fe82049f883
|
0
tests/tc028/expected1.txt
Normal file
0
tests/tc028/expected1.txt
Normal file
17
tests/tc028/file.d
Normal file
17
tests/tc028/file.d
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
struct Bob
|
||||||
|
{
|
||||||
|
version (all)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
@disable this();
|
||||||
|
}
|
||||||
|
|
||||||
|
int abcde;
|
||||||
|
}
|
||||||
|
|
||||||
|
unittest
|
||||||
|
{
|
||||||
|
ab
|
||||||
|
}
|
5
tests/tc028/run.sh
Executable file
5
tests/tc028/run.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
set -e
|
||||||
|
set -u
|
||||||
|
|
||||||
|
../../bin/dcd-client $1 file.d -c122 > actual1.txt
|
||||||
|
diff actual1.txt expected1.txt
|
Loading…
Add table
Add a link
Reference in a new issue