Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm %s -o - | FileCheck -check-prefix CHECK-LSB %s
      2 
      3 // CHECK-LSB: @.str = private unnamed_addr constant [8 x i8] c"string0\00"
      4 // CHECK-LSB: @.str.1 = private unnamed_addr constant [8 x i8] c"string1\00"
      5 // CHECK-LSB: @.str.2 = private unnamed_addr constant [18 x i16] [i16 104, i16 101, i16 108, i16 108, i16 111, i16 32, i16 8594, i16 32, i16 9731, i16 32, i16 8592, i16 32, i16 119, i16 111, i16 114, i16 108, i16 100, i16 0], section "__TEXT,__ustring", align 2
      6 // CHECK-LSB: @.str.4 = private unnamed_addr constant [6 x i16] [i16 116, i16 101, i16 115, i16 116, i16 8482, i16 0], section "__TEXT,__ustring", align 2
      7 
      8 
      9 // RUN: %clang_cc1 -triple powerpc-apple-darwin9 -emit-llvm %s -o - | FileCheck -check-prefix CHECK-MSB %s
     10 
     11 // CHECK-MSB: @.str = private unnamed_addr constant [8 x i8] c"string0\00"
     12 // CHECK-MSB: @.str.1 = private unnamed_addr constant [8 x i8] c"string1\00"
     13 // CHECK-MSB: @.str.2 = private unnamed_addr constant [18 x i16] [i16 104, i16 101, i16 108, i16 108, i16 111, i16 32, i16 8594, i16 32, i16 9731, i16 32, i16 8592, i16 32, i16 119, i16 111, i16 114, i16 108, i16 100, i16 0], section "__TEXT,__ustring", align 2
     14 // CHECK-MSB: @.str.4 = private unnamed_addr constant [6 x i16] [i16 116, i16 101, i16 115, i16 116, i16 8482, i16 0], section "__TEXT,__ustring", align 2
     15 
     16 const char *g0 = "string0";
     17 const void *g1 = __builtin___CFStringMakeConstantString("string1");
     18 const void *g2 = __builtin___CFStringMakeConstantString("hello \u2192 \u2603 \u2190 world");
     19 const void *g3 = __builtin___CFStringMakeConstantString("test");
     20