summaryrefslogtreecommitdiffstats
path: root/test/SemaObjCXX/propert-dot-error.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjCXX/propert-dot-error.mm')
-rw-r--r--test/SemaObjCXX/propert-dot-error.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaObjCXX/propert-dot-error.mm b/test/SemaObjCXX/propert-dot-error.mm
index 747efeb..2237411 100644
--- a/test/SemaObjCXX/propert-dot-error.mm
+++ b/test/SemaObjCXX/propert-dot-error.mm
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
// rdar: // 8379892
struct X {
@@ -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