aboutsummaryrefslogtreecommitdiff
path: root/test/Assembler/private-hidden-function.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/private-hidden-function.ll')
-rw-r--r--test/Assembler/private-hidden-function.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Assembler/private-hidden-function.ll b/test/Assembler/private-hidden-function.ll
new file mode 100644
index 000000000000..dd73f0413b9f
--- /dev/null
+++ b/test/Assembler/private-hidden-function.ll
@@ -0,0 +1,7 @@
+; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
+
+define private hidden void @function() {
+; CHECK: symbol with local linkage must have default visibility
+entry:
+ ret void
+}