r241328 - clang/test/CodeGenCXX/trap-fnattr.cpp: Tweak to match MS-mangled names.
NAKAMURA Takumi
geek4civic at gmail.com
Fri Jul 3 01:21:27 PDT 2015
Author: chapuni
Date: Fri Jul 3 03:21:27 2015
New Revision: 241328
URL: http://llvm.org/viewvc/llvm-project?rev=241328&view=rev
Log:
clang/test/CodeGenCXX/trap-fnattr.cpp: Tweak to match MS-mangled names.
Modified:
cfe/trunk/test/CodeGenCXX/trap-fnattr.cpp
Modified: cfe/trunk/test/CodeGenCXX/trap-fnattr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/trap-fnattr.cpp?rev=241328&r1=241327&r2=241328&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/trap-fnattr.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/trap-fnattr.cpp Fri Jul 3 03:21:27 2015
@@ -1,29 +1,29 @@
// RUN: %clang_cc1 -O0 -emit-llvm -ftrapv -ftrap-function=mytrap %s -o - | FileCheck %s -check-prefix=TRAPFUNC
// RUN: %clang_cc1 -O0 -emit-llvm -ftrapv %s -o - | FileCheck %s -check-prefix=NOOPTION
-// TRAPFUNC-LABEL: define void @_Z12test_builtinv
+// TRAPFUNC-LABEL: define void @{{_Z12test_builtinv|\"\\01\?test_builtin@@YAXXZ\"}}
// TRAPFUNC: call void @llvm.trap() [[ATTR0:#[0-9]+]]
-// NOOPTION-LABEL: define void @_Z12test_builtinv
+// NOOPTION-LABEL: define void @{{_Z12test_builtinv|\"\\01\?test_builtin@@YAXXZ\"}}
// NOOPTION: call void @llvm.trap(){{$}}
void test_builtin(void) {
__builtin_trap();
}
-// TRAPFUNC-LABEL: define {{.*}}i32 @_Z13test_noreturnv
+// TRAPFUNC-LABEL: define {{.*}}i32 @{{_Z13test_noreturnv|\"\\01\?test_noreturn@@YAHXZ\"}}
// TRAPFUNC: call void @llvm.trap() [[ATTR0]]
-// NOOPTION-LABEL: define {{.*}}i32 @_Z13test_noreturnv
+// NOOPTION-LABEL: define {{.*}}i32 @{{_Z13test_noreturnv|\"\\01\?test_noreturn@@YAHXZ\"}}
// NOOPTION: call void @llvm.trap(){{$}}
int test_noreturn(void) {
}
-// TRAPFUNC-LABEL: define {{.*}}i32 @_Z17test_add_overflowii
+// TRAPFUNC-LABEL: define {{.*}}i32 @{{_Z17test_add_overflowii|\"\\01\?test_add_overflow@@YAHHH at Z\"}}
// TRAPFUNC: call void @llvm.trap() [[ATTR1:#[0-9]+]]
-// NOOPTION-LABEL: define {{.*}}i32 @_Z17test_add_overflowii
+// NOOPTION-LABEL: define {{.*}}i32 @{{_Z17test_add_overflowii|\"\\01\?test_add_overflow@@YAHHH at Z\"}}
// NOOPTION: call void @llvm.trap() [[ATTR2:#[0-9]+]]
int test_add_overflow(int a, int b) {
More information about the cfe-commits
mailing list