Debian Codegraph @

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

raw
1 /* Allow ivars that are pointers to structs with an unknown size. */
2 /* Contributed by Nicola Pero <[email protected]> */
3 /* PR objc/47832 */
4 /* { dg-do compile } */
5 /* { dg-additional-options "-Wno-objc-root-class" } */
6
7 typedef struct
8 {
9 unsigned long int a;
10 double b[];
11 } test_type;
12
13 @interface Test
14 {
15 /* These are all fine. */
16 double *a;
17 struct { int x; double y[]; } *b;
18 test_type *c;
19 union union_type { int x; test_type y; } *d;
20 }
21 @end
22
23 @implementation Test
24 @end