aboutsummaryrefslogtreecommitdiff
path: root/test/Assembler/private-protected-function.ll
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2014-11-24 09:08:18 +0000
committerDimitry Andric <dim@FreeBSD.org>2014-11-24 09:08:18 +0000
commit5ca98fd98791947eba83a1ed3f2c8191ef7afa6c (patch)
treef5944309621cee4fe0976be6f9ac619b7ebfc4c2 /test/Assembler/private-protected-function.ll
parent68bcb7db193e4bc81430063148253d30a791023e (diff)
Diffstat (limited to 'test/Assembler/private-protected-function.ll')
-rw-r--r--test/Assembler/private-protected-function.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Assembler/private-protected-function.ll b/test/Assembler/private-protected-function.ll
new file mode 100644
index 000000000000..5dbb420a8253
--- /dev/null
+++ b/test/Assembler/private-protected-function.ll
@@ -0,0 +1,7 @@
+; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
+
+define private protected void @function() {
+; CHECK: symbol with local linkage must have default visibility
+entry:
+ ret void
+}