From 4c001b07277b8ee3159a0d22d27357ba3123f7ab Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Wed, 6 Jan 2016 01:08:55 -0800 Subject: [PATCH 1/2] Test case for #275 --- tests/tc023/expected1.txt | 9 +++++++++ tests/tc023/expected2.txt | 9 +++++++++ tests/tc023/file.d | 16 ++++++++++++++++ tests/tc023/run.sh | 8 ++++++++ 4 files changed, 42 insertions(+) create mode 100644 tests/tc023/expected1.txt create mode 100644 tests/tc023/expected2.txt create mode 100644 tests/tc023/file.d create mode 100755 tests/tc023/run.sh diff --git a/tests/tc023/expected1.txt b/tests/tc023/expected1.txt new file mode 100644 index 0000000..1f0d82d --- /dev/null +++ b/tests/tc023/expected1.txt @@ -0,0 +1,9 @@ +identifiers +alignof k +init k +mangleof k +sizeof k +stringof k +tupleof k +x v +y v diff --git a/tests/tc023/expected2.txt b/tests/tc023/expected2.txt new file mode 100644 index 0000000..1f0d82d --- /dev/null +++ b/tests/tc023/expected2.txt @@ -0,0 +1,9 @@ +identifiers +alignof k +init k +mangleof k +sizeof k +stringof k +tupleof k +x v +y v diff --git a/tests/tc023/file.d b/tests/tc023/file.d new file mode 100644 index 0000000..cbe4ba9 --- /dev/null +++ b/tests/tc023/file.d @@ -0,0 +1,16 @@ +module file; + +import point; +import point : P = Point; + +unittest +{ + P thePoint; + thePoint. +} + +unittest +{ + Point p; + p. +} diff --git a/tests/tc023/run.sh b/tests/tc023/run.sh new file mode 100755 index 0000000..86ea69f --- /dev/null +++ b/tests/tc023/run.sh @@ -0,0 +1,8 @@ +set -e +set -u + +../../bin/dcd-client file.d -c117 > actual1.txt +diff actual1.txt expected1.txt + +../../bin/dcd-client file.d -c89 > actual2.txt +diff actual2.txt expected2.txt From ef4f901cf1cc2eab9a57552e94fa78e27008a121 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Wed, 6 Jan 2016 02:21:31 -0800 Subject: [PATCH 2/2] Fix #275 --- dsymbol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsymbol b/dsymbol index 5839223..5232fcc 160000 --- a/dsymbol +++ b/dsymbol @@ -1 +1 @@ -Subproject commit 58392233a0e8cef78910e75f80b8214af6229e87 +Subproject commit 5232fcc3cae19f2776073590d9c972eefedbca96