blob: 16ff33855061a0aab16901a99544088548b815ad [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Fariborz Jahanianacdc33b2009-01-19 20:13:47 +00002// Test that arithmatic types on property and its ivar have exact match.
3
4@interface Test4
5{
Ted Kremenekf921a482010-03-23 19:02:22 +00006 char ivar; // expected-note{{ivar is declared here}}
Fariborz Jahanianacdc33b2009-01-19 20:13:47 +00007}
8@property int prop;
9@end
10
11@implementation Test4
Ted Kremenekf921a482010-03-23 19:02:22 +000012@synthesize prop = ivar; // expected-error {{type of property 'prop' ('int') does not match type of ivar 'ivar' ('char')}}
Fariborz Jahanianacdc33b2009-01-19 20:13:47 +000013@end
14