Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm %s -o - | FileCheck -check-prefix LSB %s |
Daniel Dunbar | 8e5c2b8 | 2009-03-31 23:42:16 +0000 | [diff] [blame] | 2 | |
Rafael Espindola | 1257bc6 | 2011-01-10 22:34:03 +0000 | [diff] [blame] | 3 | // CHECK-LSB: @.str = private unnamed_addr constant [8 x i8] c"string0\00" |
Rafael Espindola | dc0f137 | 2011-03-14 21:08:19 +0000 | [diff] [blame] | 4 | // CHECK-LSB: @.str1 = linker_private unnamed_addr constant [8 x i8] c"string1\00" |
Bill Wendling | 84392d0 | 2012-03-30 00:26:17 +0000 | [diff] [blame] | 5 | // CHECK-LSB: @.str2 = internal 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], align 2 |
| 6 | // CHECK-LSB: @.str4 = internal unnamed_addr constant [6 x i16] [i16 116, i16 101, i16 115, i16 116, i16 8482, i16 0], align 2 |
| 7 | |
Daniel Dunbar | 70ee975 | 2009-07-23 23:41:22 +0000 | [diff] [blame] | 8 | |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 9 | // RUN: %clang_cc1 -triple powerpc-apple-darwin9 -emit-llvm %s -o - | FileCheck -check-prefix MSB %s |
Daniel Dunbar | 70ee975 | 2009-07-23 23:41:22 +0000 | [diff] [blame] | 10 | |
Rafael Espindola | 1257bc6 | 2011-01-10 22:34:03 +0000 | [diff] [blame] | 11 | // CHECK-MSB: @.str = private unnamed_addr constant [8 x i8] c"string0\00" |
Rafael Espindola | dc0f137 | 2011-03-14 21:08:19 +0000 | [diff] [blame] | 12 | // CHECK-MSB: @.str1 = linker_private unnamed_addr constant [8 x i8] c"string1\00" |
Bill Wendling | 84392d0 | 2012-03-30 00:26:17 +0000 | [diff] [blame] | 13 | // CHECK-MSB: @.str2 = internal 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], align 2 |
| 14 | // CHECK-MSB: @.str4 = internal unnamed_addr constant [6 x i16] [i16 116, i16 101, i16 115, i16 116, i16 8482, i16 0], align 2 |
Daniel Dunbar | 8e5c2b8 | 2009-03-31 23:42:16 +0000 | [diff] [blame] | 15 | |
| 16 | const char *g0 = "string0"; |
| 17 | const void *g1 = __builtin___CFStringMakeConstantString("string1"); |
Daniel Dunbar | a9668e0 | 2009-04-03 00:57:44 +0000 | [diff] [blame] | 18 | const void *g2 = __builtin___CFStringMakeConstantString("hello \u2192 \u2603 \u2190 world"); |
Daniel Dunbar | 434da48 | 2009-08-03 21:47:08 +0000 | [diff] [blame] | 19 | const void *g3 = __builtin___CFStringMakeConstantString("testâ„¢"); |