1 /* Test if ObjC constant strings get placed in the correct section. */
2 /* Contributed by Ziemowit Laski <zlaski@apple.com> */
4 /* { dg-options "-fnext-runtime" } */
5 /* { dg-do compile { target *-*-darwin* } } */
7 #include <objc/Object.h>
9 @interface NSConstantString: Object {
15 extern struct objc_class _NSConstantStringClassReference;
17 const NSConstantString *appKey = @"MyApp";
19 /* { dg-final { scan-assembler ".section __OBJC, __cstring_object" } } */
20 /* { dg-final { scan-assembler ".long\t__NSConstantStringClassReference\n\t.long\t.*\n\t.long\t5\n\t.data" } } */