aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/objc.dg/property/at-property-29.m
blob: 0f31617f841d7f2dc43ad09d01ed93e58238be4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, January 2011.  */
/* { dg-do compile } */

#include <objc/objc.h>

@interface MyRootClass
{
  Class isa;
}
/* Test missing '=' in setter/getter attributes.  */
@property (getter)  int property_a; /* { dg-error "missing .=. .after .getter. attribute." } */
@property (setter) int property_b;  /* { dg-error "missing .=. .after .setter. attribute." } */
@property (assign, getter) int property_c; /* { dg-error "missing .=. .after .getter. attribute." } */
@end