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