Fix using -plugin-opt=apiflie when also using -plugin-opt=emit-llvm.
[oota-llvm.git] / test / tools / gold / emit-llvm.ll
index aeff138b484f57af9816a7ebef84b8fe3c49352f..7ea0e5e3e63d96b944ea36ff323321a00a512e95 100644 (file)
@@ -2,8 +2,10 @@
 
 ; RUN: ld -plugin %llvmshlibdir/LLVMgold.so \
 ; RUN:    --plugin-opt=emit-llvm \
+; RUN:    --plugin-opt=generate-api-file \
 ; RUN:    -shared %t.o -o %t2.o
 ; RUN: llvm-dis %t2.o -o - | FileCheck %s
+; RUN: FileCheck --check-prefix=API %s < %T/../apifile.txt
 
 ; RUN: ld -plugin %llvmshlibdir/LLVMgold.so \
 ; RUN:     -m elf_x86_64 --plugin-opt=also-emit-llvm \
@@ -51,3 +53,9 @@ define linkonce_odr void @f6() unnamed_addr {
   ret void
 }
 @g6 = global void()* @f6
+
+
+; API: f3
+; API: f5
+; API: g5
+; API: g6