OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [obj-c++.dg/] [const-str-1.mm] - Diff between revs 154 and 816

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");
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.