Make this test a bit more strict.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 24 Nov 2015 16:43:53 +0000 (16:43 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 24 Nov 2015 16:43:53 +0000 (16:43 +0000)
It now tests with files in both orders.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253993 91177308-0d34-0410-b5e6-96231b3b80d8

test/tools/gold/X86/resolve-to-alias.ll

index cad5cdcb3f18cbc30cba7f46135cd8c5732db30d..102da6f80f4d23ec4cb5cea973a7d417dda73299 100644 (file)
@@ -4,7 +4,16 @@
 ; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
 ; RUN:    --plugin-opt=emit-llvm \
 ; RUN:    -shared %t.o %t2.o -o %t.bc
 ; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
 ; RUN:    --plugin-opt=emit-llvm \
 ; RUN:    -shared %t.o %t2.o -o %t.bc
-; RUN: llvm-dis %t.bc -o - | FileCheck %s
+; RUN: llvm-dis %t.bc -o %t.ll
+; RUN: FileCheck --check-prefix=PASS1 %s < %t.ll
+; RUN: FileCheck --check-prefix=PASS2 %s < %t.ll
+
+; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
+; RUN:    --plugin-opt=emit-llvm \
+; RUN:    -shared %t2.o %t.o -o %t.bc
+; RUN: llvm-dis %t.bc -o %t.ll
+; RUN: FileCheck --check-prefix=PASS1 %s < %t.ll
+; RUN: FileCheck --check-prefix=PASS2 %s < %t.ll
 
 define void @foo() {
   call void @bar()
 
 define void @foo() {
   call void @bar()
@@ -12,13 +21,13 @@ define void @foo() {
 }
 declare void @bar()
 
 }
 declare void @bar()
 
-; CHECK: @bar = alias void (), void ()* @zed
+; PASS1: @bar = alias void (), void ()* @zed
 
 
-; CHECK:      define void @foo() {
-; CHECK-NEXT:   call void @bar()
-; CHECK-NEXT:   ret void
-; CHECK-NEXT: }
+; PASS1:      define void @foo() {
+; PASS1-NEXT:   call void @bar()
+; PASS1-NEXT:   ret void
+; PASS1-NEXT: }
 
 
-; CHECK:      define void @zed() {
-; CHECK-NEXT:   ret void
-; CHECK-NEXT: }
+; PASS2:      define void @zed() {
+; PASS2-NEXT:   ret void
+; PASS2-NEXT: }