blob: 423c51e937165398e284c2c73c0e025955f09d84 [file] [log] [blame]
Chris Lattner214956d2004-10-11 05:00:12 +00001; RUN: llvm-as < %s | 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}