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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [naming-3.mm] - Rev 703

Compare with Previous | Blame | View Log

/* Testing for detecting duplicate ivars. */
/* { dg-do compile } */

@interface A 
{
  char x; /* { dg-message "previous declaration" } */
  char x;
} /* { dg-error "redeclaration" } */
@end

@interface B : A
{
  char y;
}
@end

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.