aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic/call2-ret0.ll
blob: 55be5c68b65c751c482079502ae9d03526e2b25e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llvm-upgrade < %s | llvm-as | llc

int %bar(int %x) {
  ret int 0
}

int %foo(int %x) {
  %q = call int %bar(int 1)
  ret int %q
}

int %main() {  
  %r = call int %foo(int 2) 
  ret int %r
}