1/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */ 2/* { dg-do compile } */ 3 4/* Test that @synthesize does not ICE if asked to use a non-existing 5 ivar. */ 6 7#include <objc/objc.h> 8 9@interface Test 10@property int v1; 11@end 12 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 } */ 19