Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
Fariborz Jahanian | acdc33b | 2009-01-19 20:13:47 +0000 | [diff] [blame] | 2 | // 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 |