blob: 068e96fc2c464d8a08dc5b8545302d455fb39f27 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | not grep global
2
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}