view gcc/testsuite/objc.dg/type-size-4.m @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* 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