blob: 75c1e97c4ee97a9bb64f3a8551c50a17d3427336 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -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{
6 char ivar;
7}
8@property int prop;
9@end
10
11@implementation Test4
12@synthesize prop = ivar; // expected-error {{type of property 'prop' does not match type of ivar 'ivar'}}
13@end
14