Change tests to use testrunner
[oota-llvm.git] / test / Transforms / Inline / alloca_test.ll
1 ; This test ensures that alloca instructions in the entry block for an inlined
2 ; function are moved to the top of the function they are inlined into.
3 ;
4 ; RUN: as < %s | opt -inline | dis | grep -C 1 alloca | grep Entry:
5
6 int %func(int %i) {
7         %X = alloca int 
8         ret int %i
9 }
10
11 declare void %bar()
12
13 int %main(int %argc) {
14 Entry:
15         call void %bar()
16         %X = call int %func(int 7)
17         %Y = add int %X, %argc
18         ret int %Y
19 }