blob: 7e26da34a43de9c8bb67d40cd4322f438c250e2c [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 } */
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