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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [naming-6.m] - Rev 754

Go to most recent revision | Compare with Previous | Blame | View Log

/* Testing for detecting duplicate ivars. */
/* { dg-do compile } */
 
@interface A 
{
  /* TODO: Have the testsuite check that these messages occur only once!  */
  char x; /* { dg-message "previous declaration" } */
  char x; /* { dg-error "duplicate instance variable" } */
}
@end
 
/* In some versions of the compiler (eg, 4.6.x), having a subclass
   would generate additional, duplicate errors for the duplicate
   instance variable in the superclass, so adding the following would
   cause the error messages above to be duplicated.  */
@interface B : A
{
  char y;
}
@end
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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