From fbfcb533ba8ae484ef9937e3ab02985e6073638e Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 13 May 2014 00:07:46 +0000 Subject: [PATCH] Convert test to FileCheck. llvm-svn: 208644 --- .../Transforms/GlobalDCE/2009-01-05-DeadAliases.ll | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/llvm/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll b/llvm/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll index 6658cee12239..0bdced5114d3 100644 --- a/llvm/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll +++ b/llvm/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 +; CHECK: @L1 = alias i32* @A + @L2 = alias internal i32* @L1 +; CHECK: @L2 = alias internal i32* @L1 + @L3 = alias i32* @L2 +; CHECK: @L3 = alias i32* @L2