[llvm] r362515 - llvm-undname: Add coverage for startsWithLocalScopePattern()

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 4 08:47:25 PDT 2019


Author: nico
Date: Tue Jun  4 08:47:25 2019
New Revision: 362515

URL: http://llvm.org/viewvc/llvm-project?rev=362515&view=rev
Log:
llvm-undname: Add coverage for startsWithLocalScopePattern()

Modified:
    llvm/trunk/test/Demangle/invalid-manglings.test

Modified: llvm/trunk/test/Demangle/invalid-manglings.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Demangle/invalid-manglings.test?rev=362515&r1=362514&r2=362515&view=diff
==============================================================================
--- llvm/trunk/test/Demangle/invalid-manglings.test (original)
+++ llvm/trunk/test/Demangle/invalid-manglings.test Tue Jun  4 08:47:25 2019
@@ -274,3 +274,38 @@
 ; CHECK-EMPTY:
 ; CHECK-NEXT: ?foo@?A
 ; CHECK-NEXT: error: Invalid mangled name
+
+?foo@?
+; CHECK-EMPTY:
+; CHECK-NEXT: ?foo@?
+; CHECK-NEXT: error: Invalid mangled name
+
+?foo@??
+; CHECK-EMPTY:
+; CHECK-NEXT: ?foo@??
+; CHECK-NEXT: error: Invalid mangled name
+
+?foo@?XX?
+; CHECK-EMPTY:
+; CHECK-NEXT: ?foo@?XX?
+; CHECK-NEXT: error: Invalid mangled name
+
+?foo@?A@?
+; CHECK-EMPTY:
+; CHECK-NEXT: ?foo@?A@?
+; CHECK-NEXT: error: Invalid mangled name
+
+?foo@?Q@?
+; CHECK-EMPTY:
+; CHECK-NEXT: ?foo@?Q@?
+; CHECK-NEXT: error: Invalid mangled name
+
+?foo@?BQ@?
+; CHECK-EMPTY:
+; CHECK-NEXT: ?foo@?BQ@?
+; CHECK-NEXT: error: Invalid mangled name
+
+?foo@?0?
+; CHECK-EMPTY:
+; CHECK-NEXT: ?foo@?0?
+; CHECK-NEXT: error: Invalid mangled name




More information about the llvm-commits mailing list