[llvm] r349168 - [MS Demangler] Add a regression test for an invalid mangled name.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 14 09:59:27 PST 2018
Author: zturner
Date: Fri Dec 14 09:59:27 2018
New Revision: 349168
URL: http://llvm.org/viewvc/llvm-project?rev=349168&view=rev
Log:
[MS Demangler] Add a regression test for an invalid mangled name.
Added:
llvm/trunk/test/Demangle/invalid-manglings.test
Added: llvm/trunk/test/Demangle/invalid-manglings.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Demangle/invalid-manglings.test?rev=349168&view=auto
==============================================================================
--- llvm/trunk/test/Demangle/invalid-manglings.test (added)
+++ llvm/trunk/test/Demangle/invalid-manglings.test Fri Dec 14 09:59:27 2018
@@ -0,0 +1,6 @@
+; Run llvm-undname with invalid inputs and make sure it doesn't crash.
+; RUN: llvm-undname < %s 2>&1 | FileCheck %s
+
+?ff@@$$J0YAXAU?$AS_@$0A at PEAU?$AS_@$0A at H@__clang@@@__clang@@@Z
+; CHECK: ?ff@@$$J0YAXAU?$AS_@$0A at PEAU?$AS_@$0A at H@__clang@@@__clang@@@Z
+; CHECK-NEXT: error: Invalid mangled name
More information about the llvm-commits
mailing list