Spare '&' in the RUN line.
[oota-llvm.git] / test / Transforms / GlobalOpt / trivialstore.llx
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | not grep G
2
3 %G = internal global int 17
4
5 void %foo() {
6         store int 17, int* %G   ;; Doesn't change the value
7         ret void
8 }
9 int %bar() {
10         %X = load int* %G
11         ret int %X
12 }
13
14 internal void %dead() {
15         store int 123, int* %G
16         ret void
17 }