summaryrefslogtreecommitdiffstats
path: root/llvm/test/Linker/alias-3.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Linker/alias-3.ll')
-rw-r--r--llvm/test/Linker/alias-3.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Linker/alias-3.ll b/llvm/test/Linker/alias-3.ll
new file mode 100644
index 00000000000..4fb88a65c19
--- /dev/null
+++ b/llvm/test/Linker/alias-3.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-link %s -S -o - | FileCheck %s
+target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-apple-macosx10.9"
+
+; CHECK-DAG: @A = internal constant i8 1
+; CHECK-DAG: @B = alias i8, i8* @A
+; CHECK-DAG: @C = global [2 x i8*] [i8* @A, i8* @B]
+
+@A = internal constant i8 1
+@B = alias i8, i8* @A
+@C = global [2 x i8*] [i8* @A, i8* @B]
+
+
OpenPOWER on IntegriCloud