mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
20 lines
308 B
Plaintext
20 lines
308 B
Plaintext
|
; RUN: as < %s | opt -prune-eh | dis | not grep invoke
|
||
|
|
||
|
implementation
|
||
|
|
||
|
internal int %foo() {
|
||
|
invoke int %foo() to label %Normal except label %Except
|
||
|
Normal:
|
||
|
ret int 12
|
||
|
Except:
|
||
|
ret int 123
|
||
|
}
|
||
|
|
||
|
int %caller() {
|
||
|
invoke int %foo() to label %Normal except label %Except
|
||
|
Normal:
|
||
|
ret int 0
|
||
|
Except:
|
||
|
ret int 1
|
||
|
}
|