aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/objc.dg/type-size-4.m
blob: 7e26da34a43de9c8bb67d40cd4322f438c250e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Allow ivars that are pointers to structs with an unknown size.  */
/* Contributed by Nicola Pero  <nicola.pero@meta-innovation.com> */
/* PR objc/47832 */
/* { dg-do compile } */

typedef struct
{
  unsigned long int a;
  double b[];
} test_type;

@interface Test
{
  /* These are all fine.  */
  double *a;
  struct { int x; double y[]; } *b;
  test_type *c;
  union union_type { int x; test_type y; } *d;
}
@end

@implementation Test
@end