summaryrefslogtreecommitdiff
path: root/test/Assembler/private-hidden-alias.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/private-hidden-alias.ll')
-rw-r--r--test/Assembler/private-hidden-alias.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Assembler/private-hidden-alias.ll b/test/Assembler/private-hidden-alias.ll
new file mode 100644
index 0000000000..58be92a34f
--- /dev/null
+++ b/test/Assembler/private-hidden-alias.ll
@@ -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