hanchenye-llvm-project/llvm/test/CodeGen/Generic/call-ret42.ll

11 lines
138 B
LLVM
Raw Normal View History

; RUN: llvm-upgrade < %s | llvm-as | llc
2004-11-07 05:40:51 +08:00
int %foo(int %x) {
ret int 42
}
int %main() {
%r = call int %foo(int 15)
ret int %r
}