1 /* Negative test case for constant string layout. */
2 /* Contributed by Ziemowit Laski <zlaski@apple.com>. */
4 /* { dg-options "-fconstant-string-class=MyConstantString" } */
5 /* { dg-do compile } */
12 @interface MyConstantString: MyBase {
21 /* The NeXT runtime initializes the 'isa' pointer of string constants at
23 #ifdef __NEXT_RUNTIME__
24 extern void *_MyConstantStringClassReference;
27 MyConstantString *str = @"Hello"; /* { dg-error "interface .MyConstantString. does not have valid constant string layout" } */