libiberty: d-demangle: Add test case for function literals

Message ID 20211013184339.241171-1-contact@lsferreira.net
State New
Headers show
Series
  • libiberty: d-demangle: Add test case for function literals
Related show

Commit Message

Luís Ferreira Oct. 13, 2021, 6:43 p.m.
Coverage tests doesn't include a case for function literals

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


libiberty/ChangeLog:

	* testsuite/d-demangle-expected: add test case for function literals
---
 libiberty/testsuite/d-demangle-expected | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.33.0

Comments

Jason Merrill via Gcc-patches Oct. 14, 2021, 4:25 p.m. | #1
On 10/13/2021 12:43 PM, Luís Ferreira wrote:
> Coverage tests doesn't include a case for function literals

>

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

>

> libiberty/ChangeLog:

>

> 	* testsuite/d-demangle-expected: add test case for function literals

THanks.  Installed.
jeff

Patch

diff --git a/libiberty/testsuite/d-demangle-expected b/libiberty/testsuite/d-demangle-expected
index 44a3649c429..3c3aebb06aa 100644
--- a/libiberty/testsuite/d-demangle-expected
+++ b/libiberty/testsuite/d-demangle-expected
@@ -973,6 +973,10 @@  demangle.test(char)
 _D8demangle000000004testFaZv
 demangle.test(char)
 #
+--format=dlang
+_D8demangle__T3abcS_DQt10__lambda13FNaNbNiNfZiZQBhFZi
+demangle.abc!(demangle.__lambda13()).abc()
+#
 # Unittests
 #
 --format=dlang