aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/Inline/basictest.ll
blob: 6ccd3157c99e7e4fe3d0010253709d9202bfe9c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: opt %s -inline -disable-output -print-function 2> /dev/null

define i32 @func(i32 %i) {
        ret i32 %i
}

define i32 @main(i32 %argc) {
        %X = call i32 @func( i32 7 )            ; <i32> [#uses=1]
        %Y = add i32 %X, %argc          ; <i32> [#uses=1]
        ret i32 %Y
}