aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll')
-rw-r--r--test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll18
1 files changed, 14 insertions, 4 deletions
diff --git a/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll b/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll
index 6658cee..4b96799 100644
--- a/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll
+++ b/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll
@@ -1,8 +1,18 @@
-; RUN: opt < %s -globaldce -S | not grep @D
-; RUN: opt < %s -globaldce -S | grep @L | count 3
+; RUN: opt < %s -globaldce -S > %t
+; RUN: FileCheck %s < %t
+; RUN: FileCheck --check-prefix=DEAD %s < %t
@A = global i32 0
+; CHECK: @A = global i32 0
+
@D = alias internal i32* @A
+; DEAD-NOT: @D
+
@L1 = alias i32* @A
-@L2 = alias internal i32* @L1
-@L3 = alias i32* @L2
+; CHECK: @L1 = alias i32* @A
+
+@L2 = alias internal i32* @A
+; DEAD-NOT: @L2
+
+@L3 = alias i32* @A
+; CHECK: @L3 = alias i32* @A