[llvm] r254184 - Make the test a bit more interesting.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 26 18:07:37 PST 2015


Author: rafael
Date: Thu Nov 26 20:07:37 2015
New Revision: 254184

URL: http://llvm.org/viewvc/llvm-project?rev=254184&view=rev
Log:
Make the test a bit more interesting.

It now covers a regular function replacing an available_externally one.

Modified:
    llvm/trunk/test/tools/gold/X86/available-externally.ll

Modified: llvm/trunk/test/tools/gold/X86/available-externally.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/available-externally.ll?rev=254184&r1=254183&r2=254184&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/available-externally.ll (original)
+++ llvm/trunk/test/tools/gold/X86/available-externally.ll Thu Nov 26 20:07:37 2015
@@ -1,16 +1,22 @@
 ; RUN: llvm-as %s -o %t.o
+; RUN: llvm-as %p/Inputs/available-externally.ll -o %t2.o
 
 ; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
 ; RUN:    --plugin-opt=emit-llvm \
-; RUN:    -shared %t.o -o %t2.o
-; RUN: llvm-dis %t2.o -o - | FileCheck %s
+; RUN:    -shared %t.o %t2.o -o %t3.o
+; RUN: llvm-dis %t3.o -o - | FileCheck %s
 
 define void @foo() {
   call void @bar()
+  call void @zed()
   ret void
 }
 define available_externally void @bar() {
   ret void
 }
+define available_externally void @zed() {
+  ret void
+}
 
 ; CHECK: define available_externally void @bar() {
+; CHECK: define void @zed() {




More information about the llvm-commits mailing list