[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / SemaObjC / property-ivar-mismatch.m
blob16ff33855061a0aab16901a99544088548b815ad
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // Test that arithmatic types on property and its ivar have exact match.
4 @interface Test4 
6    char ivar; // expected-note{{ivar is declared here}}
8 @property int prop;
9 @end
11 @implementation Test4
12 @synthesize prop = ivar;  // expected-error {{type of property 'prop' ('int') does not match type of ivar 'ivar' ('char')}}
13 @end