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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [naming-2.mm] - Blame information for rev 714

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

Line No. Rev Author Line
1 703 jeremybenn
/* Testing for detecting duplicate ivars. */
2
/* { dg-do compile } */
3
 
4
typedef struct S { int i; } NSDictionary;
5
 
6
@interface A
7
{
8
    NSDictionary * _userInfo; /* { dg-message "previous declaration" } */
9
    int i1;
10
    int i2;
11
    int i3;
12
    int i4;
13
    int i5;
14
    int i6;
15
    int i7;
16
    NSDictionary * _userInfo1; /* { dg-message "previous declaration" } */
17
}
18
@end
19
 
20
@interface B : A
21
{
22
    NSDictionary * _userInfo1; /* { dg-error "duplicate instance variable" } */
23
    int ii1;
24
    int ii2;
25
    int ii3;
26
    int ii4;
27
    int ii5;
28
    int ii6;
29
    int ii7;
30
}
31
@end
32
 
33
@interface C : A
34
@end
35
 
36
@interface D : C
37
{
38
    NSDictionary * _userInfo;   /* { dg-error "duplicate instance variable" } */
39
}
40
@end
41
 

powered by: WebSVN 2.1.0

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