Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / obj-c++.dg / const-str-9.mm
blob97d49e9043cedcd26d1b26e64167e6962e87df92
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 {
10   char *cString;
11   unsigned int len;
13 @end
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" } } */