summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-04-24 21:42:56 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-04-24 21:42:56 +0000
commit468d327b343eabdceea9541985818ac166c79ddf (patch)
tree80605a9657f45c6d18f912b7478703008c51349e /llvm/test
parent2adb06a820fee96abbae8a0a577c11490dbf5bf1 (diff)
downloadbcm5719-llvm-468d327b343eabdceea9541985818ac166c79ddf.tar.gz
bcm5719-llvm-468d327b343eabdceea9541985818ac166c79ddf.zip
Also check the IR.
llvm-svn: 267367
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/tools/gold/X86/visibility.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/gold/X86/visibility.ll b/llvm/test/tools/gold/X86/visibility.ll
index 8a1bbfd68ba..be909bf4b61 100644
--- a/llvm/test/tools/gold/X86/visibility.ll
+++ b/llvm/test/tools/gold/X86/visibility.ll
@@ -2,8 +2,10 @@
; RUN: llvm-as %p/Inputs/visibility.ll -o %t2.o
; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
+; RUN: --plugin-opt=save-temps \
; RUN: -shared %t.o %t2.o -o %t.so
; RUN: llvm-readobj -t %t.so | FileCheck %s
+; RUN: llvm-dis %t.so.bc -o - | FileCheck --check-prefix=IR %s
; CHECK: Name: foo
; CHECK-NEXT: Value:
@@ -14,6 +16,8 @@
; CHECK-NEXT: STV_PROTECTED
; CHECK-NEXT: ]
+; IR: define protected void @foo
+
define weak protected void @foo() {
ret void
}
OpenPOWER on IntegriCloud