summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/SemaObjC/property-category-1.m2
-rw-r--r--clang/test/SemaObjC/property-error-readonly-assign.m6
-rw-r--r--clang/test/SemaObjC/property-in-class-extension.m2
-rw-r--r--clang/test/SemaObjC/property-user-setter.m4
-rw-r--r--clang/test/SemaObjCXX/propert-dot-error.mm2
5 files changed, 8 insertions, 8 deletions
diff --git a/clang/test/SemaObjC/property-category-1.m b/clang/test/SemaObjC/property-category-1.m
index 6382826080f..fd2ae1165b6 100644
--- a/clang/test/SemaObjC/property-category-1.m
+++ b/clang/test/SemaObjC/property-category-1.m
@@ -48,6 +48,6 @@ int main(int argc, char **argv) {
@implementation I0 // expected-warning {{property 'p0' requires method 'p0' to be define}}
- (void) foo {
- self.p0 = 0; // expected-error {{assigning to property with 'readonly' attribute not allowed}}
+ self.p0 = 0; // expected-error {{assignment to readonly property}}
}
@end
diff --git a/clang/test/SemaObjC/property-error-readonly-assign.m b/clang/test/SemaObjC/property-error-readonly-assign.m
index fc8c48c4f6c..3484172844b 100644
--- a/clang/test/SemaObjC/property-error-readonly-assign.m
+++ b/clang/test/SemaObjC/property-error-readonly-assign.m
@@ -13,9 +13,9 @@
@end
void f0(A *a, B* b) {
- a.x = 10; // expected-error {{assigning to property with 'readonly' attribute not allowed}}
+ a.x = 10; // expected-error {{assignment to readonly property}}
a.ok = 20;
- b.x = 10; // expected-error {{setter method is needed to assign to object using property assignment syntax}}
+ b.x = 10; // expected-error {{no setter method 'setX:' for assignment to property}}
b.ok = 20;
}
@@ -39,6 +39,6 @@ NSRect NSMakeRect();
@implementation NSWindow (Category)
-(void)methodToMakeClangCrash
{
- self.frame = NSMakeRect(); // expected-error {{setter method is needed to assign to object using property assignment syntax}}
+ self.frame = NSMakeRect(); // expected-error {{no setter method 'setFrame:' for assignment to property}}
}
@end
diff --git a/clang/test/SemaObjC/property-in-class-extension.m b/clang/test/SemaObjC/property-in-class-extension.m
index 6ae0b8148a3..53210fc34bf 100644
--- a/clang/test/SemaObjC/property-in-class-extension.m
+++ b/clang/test/SemaObjC/property-in-class-extension.m
@@ -9,7 +9,7 @@
void FUNC () {
Foo *foo;
- foo.bar = 0; // expected-error {{assigning to property with 'readonly' attribute not allowed}}
+ foo.bar = 0; // expected-error {{assignment to readonly property}}
}
// rdar://8747333
diff --git a/clang/test/SemaObjC/property-user-setter.m b/clang/test/SemaObjC/property-user-setter.m
index 2f1e19727a8..3dd19c5f3a7 100644
--- a/clang/test/SemaObjC/property-user-setter.m
+++ b/clang/test/SemaObjC/property-user-setter.m
@@ -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
diff --git a/clang/test/SemaObjCXX/propert-dot-error.mm b/clang/test/SemaObjCXX/propert-dot-error.mm
index 747efeb536b..5f7efdd90a0 100644
--- a/clang/test/SemaObjCXX/propert-dot-error.mm
+++ b/clang/test/SemaObjCXX/propert-dot-error.mm
@@ -20,7 +20,7 @@ struct X {
@end
void f(A* a) {
- a.x = X(); // expected-error {{setter method is needed to assign to object using property assignment syntax}}
+ a.x = X(); // expected-error {{no setter method 'setX:' for assignment to property}}
}
struct Y : X { };
OpenPOWER on IntegriCloud