URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc.dg/] [type-size-1.m] - Rev 404
Go to most recent revision | Compare with Previous | Blame | View Log
/* Reject ivars with an unknown size. */ /* Contributed by Ziemowit Laski <zlaski@apple.com>. */ /* { dg-do compile } */ struct unknownStruct; @interface ArrayTest { short unknownSize[unknownValue]; /* { dg-error ".unknownValue. (undeclared|was not declared)" } */ /* { dg-error "instance variable .unknownSize. has unknown size" "" { target *-*-* } 9 } */ struct unknownStruct unknownObj; /* { dg-error "field .unknownObj. has incomplete type" } */ /* { dg-error "instance variable .unknownObj. has unknown size" "" { target *-*-* } 11 } */ long knownSize[3]; /* ok */ char zeroSize[2 - 2]; /* ok (apparently) */ int missingSize[]; /* { dg-error "instance variable .missingSize. has unknown size" } */ } @end
Go to most recent revision | Compare with Previous | Blame | View Log