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] - Rev 757

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

/* Testing for detecting duplicate ivars. */
/* { dg-do compile } */
 
typedef struct S { int i; } NSDictionary;
 
@interface A 
{
    NSDictionary * _userInfo; /* { dg-message "previous declaration" } */
    int i1;
    int i2;
    int i3;
    int i4;
    int i5;
    int i6;
    int i7;
}
@end
 
@interface B : A
{
    NSDictionary * _userInfo1; /* { dg-message "previous declaration" } */
    int ii1;
    int ii2;
    int ii3;
    int ii4;
    int ii5;
    int ii6;
    int ii7;
    NSDictionary * _userInfo1; /* { dg-error "duplicate instance variable" } */
}
@end
 
@interface C : A
@end
 
@interface D : C
{
    NSDictionary * _userInfo;   /* { dg-error "duplicate instance variable" } */
}	
@end
 
 

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

powered by: WebSVN 2.1.0

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