URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [obj-c++.dg/] [const-str-1.mm] - Rev 323
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test errors for constant strings. */
/* { dg-do compile } */
#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");
}
Go to most recent revision | Compare with Previous | Blame | View Log