test that the no_dead_strip directive is emitted on darwin-x86
[oota-llvm.git] / test / CodeGen / X86 / darwin-no-dead-strip.ll
diff --git a/test/CodeGen/X86/darwin-no-dead-strip.ll b/test/CodeGen/X86/darwin-no-dead-strip.ll
new file mode 100644 (file)
index 0000000..4a594c6
--- /dev/null
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc | grep no_dead_strip
+
+target endian = little
+target pointersize = 32
+target triple = "i686-apple-darwin8.7.2"
+%x = weak global int 0          ; <int*> [#uses=1]
+%llvm.used = appending global [1 x sbyte*] [ sbyte* cast (int* %x to sbyte*) ]