blob: 5743e42f9d2aaa2ea8e1aa6a594d6e0b713d2a7e [file] [log] [blame]
Reid Spencer69ccadd2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | not grep '%G = alloca int'
Chris Lattnerc2e63a22004-12-05 06:18:35 +00002
3; In this testcase, %bar stores to the global G. Make sure that inlining does
4; not cause it to store to the G in main instead.
5
6%G = global int 7
7
8int %main() {
9 %G = alloca int
10 store int 0, int* %G
11 call void %bar()
12 %RV = load int* %G
13 ret int %RV
14}
15
16internal void %bar() {
17 store int 123, int* %G
18 ret void
19}
20