Fariborz Jahanian | 22f757b | 2010-03-22 23:25:52 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | // rdar: // 7766184 | ||||
3 | |||||
4 | @interface Foo @end | ||||
5 | |||||
6 | @interface Foo () | ||||
7 | @property (readonly) int bar; | ||||
8 | @end | ||||
9 | |||||
10 | void FUNC () { | ||||
11 | Foo *foo; | ||||
12 | foo.bar = 0; // expected-error {{assigning to property with 'readonly' attribute not allowed}} | ||||
13 | } | ||||
14 | |||||
15 |