libiberty: d-demangle: add test cases for simple special mangles

Message ID 20211013190209.248982-1-contact@lsferreira.net
State New
Headers show
Series
  • libiberty: d-demangle: add test cases for simple special mangles
Related show

Commit Message

Luís Ferreira Oct. 13, 2021, 7:02 p.m.
Simple mangled names (only with identifiers) are not being covered by coverage
tests.

Signed-off-by: Luís Ferreira <contact@lsferreira.net>


libiberty/ChangeLog:

	* testsuite/d-demangle-expected: add test cases for simple special mangles
---
 libiberty/testsuite/d-demangle-expected | 8 ++++++++
 1 file changed, 8 insertions(+)

-- 
2.33.0

Comments

Jason Merrill via Gcc-patches Oct. 14, 2021, 4:24 p.m. | #1
On 10/13/2021 1:02 PM, Luís Ferreira wrote:
> Simple mangled names (only with identifiers) are not being covered by coverage

> tests.

>

> Signed-off-by: Luís Ferreira <contact@lsferreira.net>

>

> libiberty/ChangeLog:

>

> 	* testsuite/d-demangle-expected: add test cases for simple special mangles

THanks.  Pushed to the trunk.
jeff

Patch

diff --git a/libiberty/testsuite/d-demangle-expected b/libiberty/testsuite/d-demangle-expected
index 44a3649c429..ba54e5a2812 100644
--- a/libiberty/testsuite/d-demangle-expected
+++ b/libiberty/testsuite/d-demangle-expected
@@ -18,6 +18,14 @@  _Dmain
 D main
 #
 --format=dlang
+_D8demangleZ
+demangle
+#
+--format=dlang
+_D8demangle4testZ
+demangle.test
+#
+--format=dlang
 _D8demangle4testPFLAiYi
 demangle.test
 #