blob: 284548000702755588cfe7e75b72445733630678 [file] [log] [blame]
Rafael Espindola4f5f0b72014-01-20 16:15:48 +00001// RUN: %clang_cc1 -triple i686-apple-darwin -emit-llvm %s -o - | FileCheck %s
Eric Christopherb4da65e2011-08-20 01:04:49 +00002// rdar://7589850
3
Rafael Espindolaa69024a2014-01-20 15:58:59 +00004// CHECK: @.str = internal unnamed_addr constant [9 x i16] [i16 103, i16 111, i16 111, i16 100, i16 0, i16 98, i16 121, i16 101, i16 0], align 2
5// CHECK: @_unnamed_cfstring_ = private constant %struct.NSConstantString { i32* getelementptr inbounds ([0 x i32]* @__CFConstantStringClassReference, i32 0, i32 0), i32 2000, i8* bitcast ([9 x i16]* @.str to i8*), i32 8 }, section "__DATA,__cfstring"
6// CHECK: @P = global i8* bitcast (%struct.NSConstantString* @_unnamed_cfstring_ to i8*), align 4
Eric Christopherb4da65e2011-08-20 01:04:49 +00007void *P = @"good\0bye";