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

11 lines
123 B
LLVM

; RUN: llvm-as < %s | llc
int %foo(int %x) {
ret int 42
}
int %main() {
%r = call int %foo(int 15)
ret int %r
}