mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
testcases for PR1042
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32625 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e3cbe03d13
commit
adbb6383a9
10
test/Verifier/invoke-1.ll
Normal file
10
test/Verifier/invoke-1.ll
Normal file
@ -0,0 +1,10 @@
|
||||
; RUN: not llvm-as < %s -o /dev/null -f
|
||||
; PR1042
|
||||
|
||||
int %foo() {
|
||||
%A = invoke int %foo( )
|
||||
to label %L unwind label %L ; <int> [#uses=1]
|
||||
|
||||
L: ; preds = %0, %0
|
||||
ret int %A
|
||||
}
|
13
test/Verifier/invoke-2.ll
Normal file
13
test/Verifier/invoke-2.ll
Normal file
@ -0,0 +1,13 @@
|
||||
; RUN: not llvm-as < %s -o /dev/null -f
|
||||
; PR1042
|
||||
|
||||
int %foo() {
|
||||
br bool false, label %L1, label %L2
|
||||
L1:
|
||||
%A = invoke int %foo() to label %L unwind label %L
|
||||
|
||||
L2:
|
||||
br label %L
|
||||
L:
|
||||
ret int %A
|
||||
}
|
Loading…
Reference in New Issue
Block a user