summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/darwin-string-literals.c
blob: 5bfb84e91d44134833f4f631c64a8b19c8bb94bc (plain)
1
2
3
4
5
6
7
8
9
// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm %s -o %t &&

// RUN: grep -F '@"\01LC" = internal constant [8 x i8] c"string0\00"' %t &&
// RUN: grep -F '@"\01LC1" = internal constant [8 x i8] c"string1\00", section "__TEXT,__cstring,cstring_literals"' %t &&

// RUN: true

const char *g0 = "string0";
const void *g1 = __builtin___CFStringMakeConstantString("string1");
OpenPOWER on IntegriCloud