aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/type-unique-alias.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/type-unique-alias.ll')
-rw-r--r--test/Linker/type-unique-alias.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Linker/type-unique-alias.ll b/test/Linker/type-unique-alias.ll
new file mode 100644
index 0000000..e43450f
--- /dev/null
+++ b/test/Linker/type-unique-alias.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-link -S %s %p/Inputs/type-unique-alias.ll | FileCheck %s
+
+%t = type { i8 }
+
+@g = global %t zeroinitializer
+@a = weak alias %t* @g
+
+; CHECK: @g = global %t zeroinitializer
+; CHECK: @g2 = global %t zeroinitializer
+; CHECK: @a = weak alias %t* @g