Daily bump.
[official-gcc.git] / gcc / testsuite / objc.dg / type-size-3.m
blob3f65516e75e4506e7a35b8d26c9929588e4fbf79
1 /* Reject ivars that use flexible array members.  */
2 /* Contributed by Nicola Pero  <nicola.pero@meta-innovation.com> */
3 /* { dg-do compile } */
4 /* { dg-additional-options "-Wno-objc-root-class" } */
6 typedef struct
8   unsigned long int a;
9   double b[];
10 } test_type;
12 @interface Test
14   test_type c; /* { dg-error "instance variable .c. uses flexible array member" } */
16 @end
18 @implementation Test
19 @end