And a test case for my last patch.

llvm-svn: 59875
This commit is contained in:
Fariborz Jahanian 2008-11-22 18:40:47 +00:00
parent 8a1810f06b
commit bf65ce5372
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
// RUN: clang -fsyntax-only -verify %s
@interface A
-(int) x;
@property (readonly) int x;
@property int ok;
@end
void f0(A *a) {
a.x = 10; // expected-error {{assigning to property with 'readonly' attribute not allowed}}
a.ok = 20;
}