llvm.org GIT mirror llvm / 4a2211e
New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3372 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 14 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; This testcase tests that a worklist is being used, and that globals can be
1 ; removed if they are the subject of a constexpr and ConstantPointerRef
2
3 ; RUN: if as < %s | opt -globaldce | dis | grep global
4 ; RUN: then exit 1
5 ; RUN: else exit 0
6 ; RUN: fi
7
8 %t0 = internal global [4 x sbyte] c"foo\00"
9 %t1 = internal global [4 x sbyte] c"bar\00"
10
11 %s1 = internal global [1 x sbyte*] [sbyte* cast ([4 x sbyte]* %t0 to sbyte*)]
12 %s2 = internal global [1 x sbyte*] [sbyte* getelementptr ([4 x sbyte]* %t1, uint 0, uint 0 )]
13