blob: add1ee66637c16aba845f3dbec389a3d8c067559 [file] [log] [blame]
Chris Lattner09821452004-12-11 05:14:55 +00001; RUN: llvm-as < %s | opt -ipsccp | llvm-dis | not grep global
2
3%G = internal global int undef
4
5implementation
6
7void %foo() {
8 %X = load int* %G
9 store int %X, int* %G
10 ret void
11}
12
13int %bar() {
14 %V = load int* %G
15 %C = seteq int %V, 17
16 br bool %C, label %T, label %F
17T:
18 store int 17, int* %G
19 ret int %V
20F:
21 store int 123, int* %G
22 ret int 0
23}