URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* Test errors for constant strings. */
|
/* Test errors for constant strings. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-fgnu-runtime" } */
|
/* { dg-options "-fgnu-runtime" } */
|
|
|
#ifdef __cplusplus
|
#ifdef __cplusplus
|
extern void baz(...);
|
extern void baz(...);
|
#endif
|
#endif
|
|
|
void foo()
|
void foo()
|
{
|
{
|
baz(@"hiya"); /* { dg-error "annot find interface declaration" } */
|
baz(@"hiya"); /* { dg-error "annot find interface declaration" } */
|
}
|
}
|
|
|
@interface NXConstantString
|
@interface NXConstantString
|
{
|
{
|
void *isa;
|
void *isa;
|
char *str;
|
char *str;
|
int len;
|
int len;
|
}
|
}
|
@end
|
@end
|
|
|
void bar()
|
void bar()
|
{
|
{
|
baz(@"howdah");
|
baz(@"howdah");
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.