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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [naming-5.m] - Blame information for rev 801

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

Line No. Rev Author Line
1 704 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
}
17
@end
18
 
19
@interface B : A
20
{
21
    NSDictionary * _userInfo1; /* { dg-message "previous declaration" } */
22
    int ii1;
23
    int ii2;
24
    int ii3;
25
    int ii4;
26
    int ii5;
27
    int ii6;
28
    int ii7;
29
    NSDictionary * _userInfo1; /* { dg-error "duplicate instance variable" } */
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.