aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/type-size-3.m
blob: 6d7fe038447c303401fd8e59f5def43000596209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Reject ivars with an unknown size.  */
/* Contributed by Nicola Pero  <nicola.pero@meta-innovation.com> */
/* { dg-do compile } */

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

@interface Test
{
  test_type c;
}
@end

@implementation Test
@end

/* { dg-error "instance variable has unknown size" "" { target *-*-* } 0 } */