[PATCH] libiberty: d-demangle: Add test case for function literals

Luís Ferreira contact@lsferreira.net
Wed Oct 13 18:43:39 GMT 2021


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(+)

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
-- 
2.33.0



More information about the Gcc-patches mailing list