Add the testcase from pr23900.
[oota-llvm.git] / test / CodeGen / X86 / darwin-no-dead-strip.ll
index 8e671ffccdb57325a896ad3f225e2d3603c5a4e6..35196aa5f8dce967987ab9bfed509315bc4efb4a 100644 (file)
@@ -1,7 +1,13 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc | grep no_dead_strip
+; RUN: llc < %s | FileCheck %s
 
-target endian = little
-target pointersize = 32
+target datalayout = "e-p:32: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*) ]
+
+@x = weak global i32 0
+; CHECK: .no_dead_strip        _x
+
+@"\01Ly" = private global i8 0
+; CHECK: no_dead_strip Ly
+
+@llvm.used = appending global [2 x i8*] [ i8* bitcast (i32* @x to i8*),
+            i8* @"\01Ly" ]