summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/call2-ret0.ll
blob: a0bde8de2b45633097825dbb93df923c3b2e485d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llvm-as < %s | 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
}