1 /* Testing for detecting duplicate ivars. */
2 /* { dg-do compile } */
4 typedef struct S { int i; } NSDictionary;
8 NSDictionary * _userInfo1; /* { dg-message "previous declaration" } */
9 NSDictionary * _userInfo2; /* { dg-message "previous declaration" } */
10 NSDictionary * _userInfo3; /* { dg-message "previous declaration" } */
11 NSDictionary * _userInfo4; /* { dg-message "previous declaration" } */
17 NSDictionary * _userInfo1; /* { dg-error "duplicate instance variable" } */
18 NSDictionary * _userInfo2; /* { dg-error "duplicate instance variable" } */
27 NSDictionary * _userInfo3; /* { dg-error "duplicate instance variable" } */
28 NSDictionary * _userInfo4; /* { dg-error "duplicate instance variable" } */