OSDN Git Service

compiler, runtime: Implement struct and array comparisons.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / type-size-4.m
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
6 typedef struct
7 {
8   unsigned long int a;
9   double b[];
10 } test_type;
11
12 @interface Test
13 {
14   /* These are all fine.  */
15   double *a;
16   struct { int x; double y[]; } *b;
17   test_type *c;
18   union union_type { int x; test_type y; } *d;
19 }
20 @end
21
22 @implementation Test
23 @end