fix this test
[oota-llvm.git] / test / Assembler / 2004-12-05-LocalGlobalSymtabConflict.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | \
2 ; RUN:   not grep {%G = alloca int}
3
4 ; In this testcase, %bar stores to the global G.  Make sure that inlining does
5 ; not cause it to store to the G in main instead.
6
7 %G = global int 7
8
9 int %main() {
10         %G = alloca int
11         store int 0, int* %G
12         call void %bar()
13         %RV = load int* %G
14         ret int %RV
15 }
16
17 internal void %bar() {
18         store int 123, int* %G
19         ret void
20 }
21