diff options
Diffstat (limited to 'test/SemaObjC/property-user-setter.m')
-rw-r--r-- | test/SemaObjC/property-user-setter.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/SemaObjC/property-user-setter.m b/test/SemaObjC/property-user-setter.m index 2f1e19727a888..7d4e544f0332c 100644 --- a/test/SemaObjC/property-user-setter.m +++ b/test/SemaObjC/property-user-setter.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s @interface I0 @property(readonly) int x; @@ -20,7 +20,7 @@ -(void) im0 { self.x = 0; self.y = 2; - self.z = 2; // expected-error {{assigning to property with 'readonly' attribute not allowed}} + self.z = 2; // expected-error {{assignment to readonly property}} } @end @@ -85,7 +85,7 @@ static int g_val; - (void)setFoo:(int)value; @end -void g(int); +void g(int); // expected-note {{passing argument to parameter here}} void f(C *c) { c.Foo = 17; // OK |