aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/darwin-no-dead-strip.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/darwin-no-dead-strip.ll')
-rw-r--r--test/CodeGen/X86/darwin-no-dead-strip.ll12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/CodeGen/X86/darwin-no-dead-strip.ll b/test/CodeGen/X86/darwin-no-dead-strip.ll
index 452d1f8ce392..35196aa5f8dc 100644
--- a/test/CodeGen/X86/darwin-no-dead-strip.ll
+++ b/test/CodeGen/X86/darwin-no-dead-strip.ll
@@ -1,7 +1,13 @@
-; RUN: llc < %s | grep no_dead_strip
+; RUN: llc < %s | FileCheck %s
target datalayout = "e-p:32:32"
target triple = "i686-apple-darwin8.7.2"
-@x = weak global i32 0 ; <i32*> [#uses=1]
-@llvm.used = appending global [1 x i8*] [ i8* bitcast (i32* @x to i8*) ] ; <[1 x i8*]*> [#uses=0]
+@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" ]