IR: Don't allow non-default visibility on local linkage
[oota-llvm.git] / test / Assembler / internal-hidden-function.ll
diff --git a/test/Assembler/internal-hidden-function.ll b/test/Assembler/internal-hidden-function.ll
new file mode 100644 (file)
index 0000000..193ed7c
--- /dev/null
@@ -0,0 +1,7 @@
+; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
+
+define internal hidden void @function() {
+; CHECK: symbol with local linkage must have default visibility
+entry:
+  ret void
+}