blob: 068e96fc2c464d8a08dc5b8545302d455fb39f27 [file] [log] [blame]
Reid Spencerd0e30dc2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | not grep global
Chris Lattner214956d2004-10-11 05:00:12 +00002
3%G = internal global int* null
4
5void %init() {
6 %P = malloc int
7 store int* %P, int** %G
8
9 %GV = load int** %G
10 store int 0, int* %GV
11 ret void
12}
13
14int %get() {
15 %GV = load int** %G
16 %V = load int* %GV
17 ret int %V
18}