In gcc/testsuite/: 2011-03-04 Nicola Pero <nicola.pero@meta-innovation.com>
[official-gcc.git] / gcc / testsuite / objc.dg / property / synthesize-5.m
blob0871b63ee2195610dcf205b69d0b9662a00b11ed
1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010.  */
2 /* { dg-do compile } */
4 /* Test that @synthesize does not ICE if asked to use a non-existing
5    ivar.  */
7 #include <objc/objc.h>
9 @interface Test
10 @property int v1;
11 @end
13 @implementation Test
14 @synthesize v1;       /* { dg-error "must be an existing ivar" } */
15 @end
16 /* { dg-warning "incomplete implementation" "" { target *-*-* } 15 } */
17 /* { dg-warning "method definition for .-setV1:. not found" "" { target *-*-* } 15 } */
18 /* { dg-warning "method definition for .-v1. not found" "" { target *-*-* } 15 } */