diff options
author | Alan Modra <amodra@gmail.com> | 2020-09-10 23:46:11 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-09-10 23:57:56 +0930 |
commit | 918619e5e591c492b1a67f8ce125aa8728eb4497 (patch) | |
tree | 0a05f8a340c1caaed046f974fcc7da4f50910905 /gdb/testsuite | |
parent | 62ba50486f1146f0cfd33074fc127fe00a02e87e (diff) | |
download | gdb-918619e5e591c492b1a67f8ce125aa8728eb4497.zip gdb-918619e5e591c492b1a67f8ce125aa8728eb4497.tar.gz gdb-918619e5e591c492b1a67f8ce125aa8728eb4497.tar.bz2 |
PR26597, FAIL: gdb.dlang/demangle.exp: _D8demangle4testFI5identZv
gcc commit 387d0773f3 changed the D demangler, with the following
commit log:
libiberty: Add support for `in' and `in ref' storage classes.
The storage class `in' is now a first-class citizen with its own mangle
symbol, of which also permits `in ref'. Previously, `in' was an alias
to `const [scope]', which is a type constructor.
The mangle symbol repurposed for this is `I', which was originally used
by identifier types. However, while TypeIdentifier is part of the
grammar, it must be resolved to some other entity during the semantic
passes, and so shouldn't appear anywhere in the mangled name.
Old tests that are now no longer valid have been removed.
This patch makes the same changes to the gdb testsuite as were made to
the upstream gcc libiberty testsuite.
gdb/testsuite/
PR 26597
* gdb.dlang/demangle.exp: Update tests as per gcc commit 387d0773f3.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dlang/demangle.exp | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 33987e4..5e4f28f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-09-10 Alan Modra <amodra@gmail.com> + + PR 26597 + * gdb.dlang/demangle.exp: Update tests as per gcc commit 387d0773f3. + 2020-09-08 Tom de Vries <tdevries@suse.de> * gdb.dwarf2/frame-inlined-in-outer-frame.exp: Consume gdb prompt diff --git a/gdb/testsuite/gdb.dlang/demangle.exp b/gdb/testsuite/gdb.dlang/demangle.exp index 86259ca..41cc43a 100644 --- a/gdb/testsuite/gdb.dlang/demangle.exp +++ b/gdb/testsuite/gdb.dlang/demangle.exp @@ -93,8 +93,6 @@ proc test_d_demangling {} { test_demangling "_D8demangle4testFNhG2dZv" "demangle.test(__vector(double\[2\]))" test_demangling "_D8demangle4testFNhG4dZv" "demangle.test(__vector(double\[4\]))" - test_demangling "_D8demangle4testFI5identZv" "demangle.test(ident)" - test_demangling "_D8demangle4testFI5ident4testZv" "demangle.test(ident.test)" test_demangling "_D8demangle4testFC5classZv" "demangle.test(class)" test_demangling "_D8demangle4testFC5class4testZv" "demangle.test(class.test)" test_demangling "_D8demangle4testFS6structZv" "demangle.test(struct)" @@ -104,6 +102,8 @@ proc test_d_demangling {} { test_demangling "_D8demangle4testFT7typedefZv" "demangle.test(typedef)" test_demangling "_D8demangle4testFT7typedef4testZv" "demangle.test(typedef.test)" + test_demangling "_D8demangle4testFIaZv" "demangle.test(in char)" + test_demangling "_D8demangle4testFIKaZv" "demangle.test(in ref char)" test_demangling "_D8demangle4testFJaZv" "demangle.test(out char)" test_demangling "_D8demangle4testFKaZv" "demangle.test(ref char)" test_demangling "_D8demangle4testFLaZv" "demangle.test(lazy char)" |