Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / objc.dg / property / synthesize-5.m
blob0562711fdcb2d80794c02d086d0515a7ca1588ae
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 *-*-* } .-1 } */
17 /* { dg-warning "method definition for .-setV1:. not found" "" { target *-*-* } .-2 } */
18 /* { dg-warning "method definition for .-v1. not found" "" { target *-*-* } .-3 } */