GlobalDCE: Fix an oversight in my last commit that could lead to crashes.
[oota-llvm.git] / test / Transforms / GlobalDCE / 2009-01-05-DeadAliases.ll
1 ; RUN: opt < %s -globaldce -S | not grep @D
2 ; RUN: opt < %s -globaldce -S | grep @L | count 3
3
4 @A = global i32 0
5 @D = alias internal i32* @A
6 @L1 = alias i32* @A
7 @L2 = alias internal i32* @L1
8 @L3 = alias i32* @L2