URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [ivar-invalid-type-1.mm] - Rev 713
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */
#include <objc/objc.h>
@interface MyRootClass
{
Class isa;
}
@end
@interface MySubClass
{
volatile int a; /* This is allowed */
extern int b; /* { dg-error "invalid type" } */
static int c; /* { dg-error "invalid type" } */
inline int d; /* { dg-error "declared as an .inline." } */
typedef int e; /* { dg-error "invalid type" } */
__thread int f; /* { dg-error "invalid type" } */
}
@end
Go to most recent revision | Compare with Previous | Blame | View Log