mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
14 lines
217 B
LLVM
14 lines
217 B
LLVM
|
; RUN: llvm-as < %s | opt -ipsccp | llvm-dis | grep -v 'ret int 17' | not grep ret
|
||
|
|
||
|
implementation
|
||
|
|
||
|
internal int %bar(int %A) {
|
||
|
%X = add int 1, 2
|
||
|
ret int %A
|
||
|
}
|
||
|
|
||
|
int %foo() {
|
||
|
%X = call int %bar(int 17)
|
||
|
ret int %X
|
||
|
}
|