From f47d8be7be9f519e6628b15d6c7f9e5af1496ad6 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 14 Dec 2018 17:59:27 +0000 Subject: [PATCH] [MS Demangler] Add a regression test for an invalid mangled name. llvm-svn: 349168 --- llvm/test/Demangle/invalid-manglings.test | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 llvm/test/Demangle/invalid-manglings.test diff --git a/llvm/test/Demangle/invalid-manglings.test b/llvm/test/Demangle/invalid-manglings.test new file mode 100644 index 000000000000..7f996b7aa9b8 --- /dev/null +++ b/llvm/test/Demangle/invalid-manglings.test @@ -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@PEAU?$AS_@$0A@H@__clang@@@__clang@@@Z +; CHECK: ?ff@@$$J0YAXAU?$AS_@$0A@PEAU?$AS_@$0A@H@__clang@@@__clang@@@Z +; CHECK-NEXT: error: Invalid mangled name