Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / GlobalDCE / 2002-09-12-Redeletion.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -globaldce
2
3 %foo = internal global int 7         ;; Should die when function %foo is killed
4
5 %bar = internal global [2x { int *, int }] [  { int *, int } { int* %foo, int 7}, {int*, int} { int* %foo, int 1 }]
6
7 implementation
8
9 internal int %foo() {               ;; dies when %b dies.
10         %ret = load int* %foo
11         ret int %ret
12 }
13