blob: fbe1b8c734ddc566c3633b09073e5ffbb9783189 [file] [log] [blame]
/* Test errors for constant strings. */
/* { dg-do compile } */
/* APPLE LOCAL radar 4674757 */
/* { dg-options "-fgnu-runtime -fno-constant-cfstrings" } */
#ifdef __cplusplus
extern void baz(...);
#endif
void foo()
{
baz(@"hiya"); /* { dg-error "annot find interface declaration" } */
}
__attribute__((objc_root_class)) @interface NXConstantString
{
void *isa;
char *str;
int len;
}
@end
void bar()
{
baz(@"howdah");
}