mirror of
https://github.com/dlang-community/DCD.git
synced 2025-04-26 21:29:58 +03:00
fix #453 - failure in incomplete switch
This commit is contained in:
parent
ee0acba5fc
commit
11ca3b44b9
5 changed files with 20 additions and 3 deletions
4
dub.json
4
dub.json
|
@ -7,8 +7,8 @@
|
|||
],
|
||||
"license": "GPL-3.0",
|
||||
"dependencies": {
|
||||
"dsymbol": "~>0.3.0-beta.3",
|
||||
"libdparse": "~>0.8.0-alpha.5",
|
||||
"dsymbol": "~>0.3.0",
|
||||
"libdparse": "~>0.8.0",
|
||||
"msgpack-d": "~>1.0.0-beta.3",
|
||||
"stdx-allocator": "~>2.77.0"
|
||||
},
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit ee0fa01ab74b6bf27bed3c7bdb9d6fb789963342
|
||||
Subproject commit 970efe34e66fc7b3cb93a6ec59984099908070c5
|
11
tests/tc_incomplete_switch/expected1.txt
Normal file
11
tests/tc_incomplete_switch/expected1.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
identifiers
|
||||
__monitor v
|
||||
__vptr v
|
||||
alignof k
|
||||
classinfo v
|
||||
e v
|
||||
init k
|
||||
mangleof k
|
||||
sizeof k
|
||||
stringof k
|
||||
tupleof k
|
1
tests/tc_incomplete_switch/file.d
Normal file
1
tests/tc_incomplete_switch/file.d
Normal file
|
@ -0,0 +1 @@
|
|||
class Foo{int e;} class Bar{void bar(Foo foo){switch(foo. }}
|
5
tests/tc_incomplete_switch/run.sh
Executable file
5
tests/tc_incomplete_switch/run.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
set -e
|
||||
set -u
|
||||
|
||||
../../bin/dcd-client $1 file.d -c58 > actual1.txt
|
||||
diff actual1.txt expected1.txt
|
Loading…
Add table
Add a link
Reference in a new issue