]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/objc.dg/property/at-property-23.m
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / objc.dg / property / at-property-23.m
1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
2 /* { dg-do compile } */
3
4 /* Test that properties of type arrays or bitfields are rejected. */
5
6 #include <stdlib.h>
7 #include <objc/objc.h>
8 #include <objc/runtime.h>
9
10 @interface MyRootClass
11 {
12 Class isa;
13 }
14 @property int a[8]; /* { dg-error "property cannot be an array" } */
15 @property int b:8; /* { dg-error "property cannot be a bit-field" } */
16 @property int c[]; /* { dg-error "property cannot be an array" } */
17 @end