summaryrefslogtreecommitdiffstats
path: root/llvm/test/Demangle/ms-basic.test
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-06-04 18:49:05 +0000
committerNico Weber <nicolasweber@gmx.de>2019-06-04 18:49:05 +0000
commit463854846853c3e4e099d31c51edec18e00730c0 (patch)
tree5bfc0117de6660f0c756741e5430a53b149b5942 /llvm/test/Demangle/ms-basic.test
parentaed7227b71784fb1c1e8fc7a0a5ac65647cd463f (diff)
downloadbcm5719-llvm-463854846853c3e4e099d31c51edec18e00730c0.tar.gz
bcm5719-llvm-463854846853c3e4e099d31c51edec18e00730c0.zip
llvm-undname: More coverage-related cleanups
- The loop in demangleFunctionParameterList() only exits on Error, @, and Z. All 3 cases were handled, so the rest of the function is DEMANGLE_UNREACHABLE. - The loop in demangleTemplateParameterList() always returns on Error, so there's no need to check for that in the loop header and after the loop. - Add test cases for invalid function parameter manglings. - Add a (redundant) test case for a simple template parameter list mangling. - Add a test case pointing out that varargs functions aren't demangled correctly. llvm-svn: 362540
Diffstat (limited to 'llvm/test/Demangle/ms-basic.test')
-rw-r--r--llvm/test/Demangle/ms-basic.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Demangle/ms-basic.test b/llvm/test/Demangle/ms-basic.test
index 844602bfe4b..8ba34d871f1 100644
--- a/llvm/test/Demangle/ms-basic.test
+++ b/llvm/test/Demangle/ms-basic.test
@@ -38,6 +38,10 @@
?x@@YAXMH@Z
; CHECK: void __cdecl x(float, int)
+?x@@YAXMHZZ
+; FIXME: This should be `(float, int, ...)`
+; CHECK: void __cdecl x(float, int)
+
?x@@3P6AHMNH@ZEA
; CHECK: int (__cdecl *x)(float, double, int)
OpenPOWER on IntegriCloud