llvm.org GIT mirror llvm / 70019ab
Checkin old testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3855 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
2 changed file(s) with 17 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0
1 int foo(int *A, unsigned X) {
2 return A[X];
3 }
0 ; RUN: as < %s | opt -globaldce
1
2 %foo = internal global int 7 ;; Should die when function %foo is killed
3
4 %bar = internal global [2x { int *, int }] [ { int *, int } { int* %foo, int 7}, {int*, int} { int* %foo, int 1 }]
5
6 implementation
7
8 internal int %foo() { ;; dies when %b dies.
9 %ret = load int* %foo
10 ret int %ret
11 }
12