IR: Don't allow non-default visibility on local linkage
[oota-llvm.git] / test / Assembler / private-hidden-alias.ll
diff --git a/test/Assembler/private-hidden-alias.ll b/test/Assembler/private-hidden-alias.ll
new file mode 100644 (file)
index 0000000..58be92a
--- /dev/null
@@ -0,0 +1,6 @@
+; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
+
+@global = global i32 0
+
+@alias = hidden alias private i32* @global
+; CHECK: symbol with local linkage must have default visibility