summaryrefslogtreecommitdiff
path: root/libiberty/testsuite
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@geoffk.org>2007-05-06 00:25:11 +0000
committerGeoffrey Keating <geoffk@geoffk.org>2007-05-06 00:25:11 +0000
commit24d2d05db153652e9a213ead33ab56077ff73925 (patch)
tree51901305880e9cba83a76acd3e9bbe3a90b3f68f /libiberty/testsuite
parent909c719b9a82c6737fa35016e3a41e84543cddb5 (diff)
downloadgdb-24d2d05db153652e9a213ead33ab56077ff73925.tar.gz
* cp-demangle.c (d_name): Detect local-source-name.
(d_prefix): Likewise. (d_unqualified_name): Implement local-source-name.
Diffstat (limited to 'libiberty/testsuite')
-rw-r--r--libiberty/testsuite/demangle-expected16
1 files changed, 16 insertions, 0 deletions
diff --git a/libiberty/testsuite/demangle-expected b/libiberty/testsuite/demangle-expected
index 471819e26c0..f1afc45c8c9 100644
--- a/libiberty/testsuite/demangle-expected
+++ b/libiberty/testsuite/demangle-expected
@@ -3842,3 +3842,19 @@ _ZNT
--format=gnu-v3
_Z1aMark
_Z1aMark
+# <local-source-name> test 1
+--format=gnu-v3
+_ZL3foo_2
+foo
+# <local-source-name> test 2
+--format=gnu-v3
+_ZZL3foo_2vE4var1
+foo()::var1
+# <local-source-name> test 3
+--format=gnu-v3
+_ZZL3foo_2vE4var1_0
+foo()::var1
+# <local-source-name> test 4
+--format=gnu-v3
+_ZZN7myspaceL3foo_1EvEN11localstruct1fEZNS_3fooEvE16otherlocalstruct
+myspace::foo()::localstruct::f(myspace::foo()::otherlocalstruct)