blob: 51d44b84b470cba94c1ac228e4a5076720430f84 [file] [log] [blame]
/* APPLE LOCAL file constant strings */
/* Test if constant CFStrings get placed in the correct section. */
/* Contributed by Ziemowit Laski <zlaski@apple.com> */
/* { dg-options "-fconstant-cfstrings" } */
/* { dg-do compile { target *-*-darwin* } } */
/* { dg-require-effective-target ilp32 } */
typedef const struct __CFString * CFStringRef;
static CFStringRef appKey = (CFStringRef) @"com.apple.soundpref";
/* LLVM LOCAL accept llvm syntax */
/* { dg-final { scan-assembler ".section.*__DATA,__cfstring" } } */
/* LLVM LOCAL accept llvm syntax */
/* { dg-final { scan-assembler ".long\t___CFConstantStringClassReference\n\t.long\t1992.*\n\t.long\t.*\n\t.long\t19.*\n" } } */