aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/naming-3.mm
blob: dda15fc68bed8c81b699cac8182a5b4f31faef77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* 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