rust: Do not link with libdl and libpthread unconditionally
[official-gcc.git] / gcc / testsuite / objc.dg / type-size-4.m
blobf10ed5b0118fefd1c7154b47f71464f0c6cc8fcd
1 /* Allow ivars that are pointers to structs with an unknown size.  */
2 /* Contributed by Nicola Pero  <nicola.pero@meta-innovation.com> */
3 /* PR objc/47832 */
4 /* { dg-do compile } */
5 /* { dg-additional-options "-Wno-objc-root-class" } */
7 typedef struct
9   unsigned long int a;
10   double b[];
11 } test_type;
13 @interface Test
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;
21 @end
23 @implementation Test
24 @end