aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/objc.dg/type-size-3.m
blob: bc66b0be67a001cd7ffa3e2764efac53c09dd3df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Reject ivars that use flexible array members.  */
/* 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; /* { dg-error "instance variable .c. uses flexible array member" } */
}
@end

@implementation Test
@end