diff --git a/dsymbol b/dsymbol index 87c880c..47f4711 160000 --- a/dsymbol +++ b/dsymbol @@ -1 +1 @@ -Subproject commit 87c880c5186207528e68620ac0c73d6422f115b8 +Subproject commit 47f471114ad272dc0cd41996c7977413d7a68d63 diff --git a/dub.json b/dub.json index 03bd740..6cd8cfc 100644 --- a/dub.json +++ b/dub.json @@ -7,7 +7,7 @@ ], "license": "GPL-3.0", "dependencies": { - "dsymbol": "~>0.4.5", + "dsymbol": "~>0.4.8", "libdparse": "~>0.9.8", "msgpack-d": "~>1.0.0-beta.3", "stdx-allocator": "~>2.77.2" diff --git a/libdparse b/libdparse index 698111e..1556a80 160000 --- a/libdparse +++ b/libdparse @@ -1 +1 @@ -Subproject commit 698111e7a55d9a5613b43b472588718e2a6b527b +Subproject commit 1556a80bccbe4bf40ed78ec7144011d3496ee334 diff --git a/tests/tc_anon_class/expected1.txt b/tests/tc_anon_class/expected1.txt new file mode 100644 index 0000000..587e116 --- /dev/null +++ b/tests/tc_anon_class/expected1.txt @@ -0,0 +1,13 @@ +identifiers +__monitor v +__vptr v +alignof k +classinfo v +foo f +i v +init k +j v +mangleof k +sizeof k +stringof k +tupleof k diff --git a/tests/tc_anon_class/expected2.txt b/tests/tc_anon_class/expected2.txt new file mode 100644 index 0000000..da01e0a --- /dev/null +++ b/tests/tc_anon_class/expected2.txt @@ -0,0 +1,12 @@ +identifiers +__monitor v +__vptr v +alignof k +classinfo v +foo f +init k +j v +mangleof k +sizeof k +stringof k +tupleof k diff --git a/tests/tc_anon_class/file1.d b/tests/tc_anon_class/file1.d new file mode 100644 index 0000000..eba674b --- /dev/null +++ b/tests/tc_anon_class/file1.d @@ -0,0 +1 @@ +class Bar {int i;} void main(){auto b = new class Bar {int j; void foo();};b.;} diff --git a/tests/tc_anon_class/file2.d b/tests/tc_anon_class/file2.d new file mode 100644 index 0000000..333f4b3 --- /dev/null +++ b/tests/tc_anon_class/file2.d @@ -0,0 +1 @@ +void main(){auto b = new class {int j; void foo();}; b.} diff --git a/tests/tc_anon_class/run.sh b/tests/tc_anon_class/run.sh new file mode 100755 index 0000000..f446164 --- /dev/null +++ b/tests/tc_anon_class/run.sh @@ -0,0 +1,7 @@ +set -e +set -u + +../../bin/dcd-client $1 file1.d -c77 > actual1.txt +diff actual1.txt expected1.txt +../../bin/dcd-client $1 file2.d -c55 > actual2.txt +diff actual2.txt expected2.txt