OSDN Git Service

gcc:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / type-size-3.m
1 /* Reject ivars with an unknown size.  */
2 /* Contributed by Nicola Pero  <nicola.pero@meta-innovation.com> */
3 /* { dg-do compile } */
4
5 typedef struct
6 {
7   unsigned long int a;
8   double b[];
9 } test_type;
10
11 @interface Test
12 {
13   test_type c;
14 }
15 @end
16
17 @implementation Test
18 @end /* { dg-error "instance variable has unknown size" } */