blob: 3f6c6098df7f2d600ed8691821988da06ff82255 [file] [log] [blame]
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
/* { dg-do compile } */
/* Test that properties of type arrays or bitfields are rejected. */
#include <stdlib.h>
#include <objc/objc.h>
#include <objc/runtime.h>
@interface MyRootClass
{
Class isa;
}
@property int a[8]; /* { dg-error "property cannot be an array" } */
@property int b:8; /* { dg-error "property cannot be a bit-field" } */
@property int c[]; /* { dg-error "property cannot be an array" } */
@end