1 ; RUN: sed -e s/.T1:// %s | not opt -lint -disable-output 2>&1 | FileCheck --check-prefix=CHECK1 %s
2 ; RUN: sed -e s/.T2:// %s | not opt -lint -disable-output 2>&1 | FileCheck --check-prefix=CHECK2 %s
4 target triple = "x86_64-pc-windows-msvc"
8 ;T1: declare i8* @llvm.eh.exceptionpointer.p0i8(i32)
10 ;T1: define void @test1() personality i32 (...)* @__CxxFrameHandler3 {
11 ;T1: call i8* @llvm.eh.exceptionpointer.p0i8(i32 0)
14 ;CHECK1: Intrinsic has incorrect argument type!
15 ;CHECK1-NEXT: i8* (i32)* @llvm.eh.exceptionpointer.p0i8
17 ;T2: declare i8* @llvm.eh.exceptionpointer.p0i8(token)
19 ;T2: define void @test2() personality i32 (...)* @__CxxFrameHandler3 {
20 ;T2: call i8* @llvm.eh.exceptionpointer.p0i8(token undef)
23 ;CHECK2: eh.exceptionpointer argument must be a catchpad
24 ;CHECK2-NEXT: call i8* @llvm.eh.exceptionpointer.p0i8(token undef)
26 declare i32 @__CxxFrameHandler3(...)