2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-01-20 04:13:47 +08:00
|
|
|
// Test that arithmatic types on property and its ivar have exact match.
|
|
|
|
|
|
|
|
@interface Test4
|
|
|
|
{
|
2010-03-24 03:02:22 +08:00
|
|
|
char ivar; // expected-note{{ivar is declared here}}
|
2009-01-20 04:13:47 +08:00
|
|
|
}
|
|
|
|
@property int prop;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation Test4
|
2010-03-24 03:02:22 +08:00
|
|
|
@synthesize prop = ivar; // expected-error {{type of property 'prop' ('int') does not match type of ivar 'ivar' ('char')}}
|
2009-01-20 04:13:47 +08:00
|
|
|
@end
|
|
|
|
|