Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / objc.dg / const-str-9.m
blob033337452d4efc43b386ba44e87ba70338df2a17
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 static 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" } } */