Convert test to FileCheck.

llvm-svn: 208644
This commit is contained in:
Rafael Espindola 2014-05-13 00:07:46 +00:00
parent 79b8fb5d2c
commit fbfcb533ba
1 changed files with 12 additions and 2 deletions

View File

@ -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