blob: 9a85229f6a73d348805b6cc63999086d7ada94dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* Testing for detecting duplicate ivars. */
/* { dg-do compile } */
typedef struct S { int i; } NSDictionary;
@interface A
{
NSDictionary * _userInfo;
}
@end
@interface B : A
{
NSDictionary * _userInfo; /* { dg-error "duplicate member" } */
NSDictionary * _userInfo; /* { dg-error "duplicate member" } */
}
@end
@interface C : A
@end
@interface D : C
{
NSDictionary * _userInfo; /* { dg-error "duplicate member" } */
NSDictionary * _userInfo; /* { dg-error "duplicate member" } */
}
@end
|