blob: f10ed5b0118fefd1c7154b47f71464f0c6cc8fcd [file] [log] [blame]
/* 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 } */
/* { dg-additional-options "-Wno-objc-root-class" } */
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