Rafael Espindola | 4f5f0b7 | 2014-01-20 16:15:48 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i686-apple-darwin -emit-llvm %s -o - | FileCheck %s |
Eric Christopher | b4da65e | 2011-08-20 01:04:49 +0000 | [diff] [blame] | 2 | // rdar://7589850 |
| 3 | |
Rafael Espindola | e1bd71f | 2014-01-21 02:57:56 +0000 | [diff] [blame] | 4 | // CHECK: @.str = private unnamed_addr constant [9 x i16] [i16 103, i16 111, i16 111, i16 100, i16 0, i16 98, i16 121, i16 101, i16 0], section "__TEXT,__ustring", align 2 |
Saleem Abdulrasool | 369f4d6 | 2016-07-29 19:15:51 +0000 | [diff] [blame] | 5 | // CHECK: @_unnamed_cfstring_ = private global %struct.__NSConstantString_tag { i32* getelementptr inbounds ([0 x i32], [0 x i32]* @__CFConstantStringClassReference, i32 0, i32 0), i32 2000, i8* bitcast ([9 x i16]* @.str to i8*), i32 8 }, section "__DATA,__cfstring" |
Ben Langmuir | f541674 | 2016-02-04 00:55:24 +0000 | [diff] [blame] | 6 | // CHECK: @P = global i8* bitcast (%struct.__NSConstantString_tag* @_unnamed_cfstring_ to i8*), align 4 |
Eric Christopher | b4da65e | 2011-08-20 01:04:49 +0000 | [diff] [blame] | 7 | void *P = @"good\0bye"; |