aboutsummaryrefslogtreecommitdiffstats
path: root/test/Bitcode/weak-macho-3.5.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Bitcode/weak-macho-3.5.ll')
-rw-r--r--test/Bitcode/weak-macho-3.5.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Bitcode/weak-macho-3.5.ll b/test/Bitcode/weak-macho-3.5.ll
new file mode 100644
index 0000000..0c09fe4
--- /dev/null
+++ b/test/Bitcode/weak-macho-3.5.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-dis < %s.bc| FileCheck %s
+
+; weak-macho-3.5.ll.bc was generated by passing this file to llvm-as-3.5
+; The test checks that LLVM does not place weak GlobalVariables into Comdats for
+; macho object files, they don't support it.
+
+target triple = "x86_64-apple-macosx10.9.0"
+; CHECK: target triple = "x86_64-apple-macosx10.9.0"
+
+@x = weak global i32 0
+; CHECK: @x = weak global i32 0{{$}}