Debian Codegraph @

gcc/testsuite/objc.dg/type-size-3.m

raw
1 /* Reject ivars that use flexible array members. */
2 /* Contributed by Nicola Pero <[email protected]> */
3 /* { dg-do compile } */
4 /* { dg-additional-options "-Wno-objc-root-class" } */
5
6 typedef struct
7 {
8 unsigned long int a;
9 double b[];
10 } test_type;
11
12 @interface Test
13 {
14 test_type c; /* { dg-error "instance variable .c. uses flexible array member" } */
15 }
16 @end
17
18 @implementation Test
19 @end