Change text of diagnostics on user request.

radar 7948654.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110857 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Fariborz Jahanian 2010-08-11 21:22:15 +00:00
Родитель d67ef0eed4
Коммит 741c362a1c
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -2234,7 +2234,7 @@ def ext_integer_complement_complex : Extension<
def error_nosetter_property_assignment : Error<
"setter method is needed to assign to object using property" " assignment syntax">;
def error_no_subobject_property_setting : Error<
"expression is not assignable using property assignment syntax">;
"expression is not assignable">;
def ext_freestanding_complex : Extension<
"complex numbers are an extension in a freestanding C99 implementation">;

Просмотреть файл

@ -15,8 +15,8 @@ typedef struct NSSize {
void foo() {
Foo *f;
f.size.width = 2.2; // expected-error {{expression is not assignable using property assignment syntax}}
f.size.inner.dim = 200; // expected-error {{expression is not assignable using property assignment syntax}}
f.size.width = 2.2; // expected-error {{expression is not assignable}}
f.size.inner.dim = 200; // expected-error {{expression is not assignable}}
}
// radar 7628953
@ -28,7 +28,7 @@ void foo() {
@implementation Gorf
- (void)MyView_sharedInit {
self.size.width = 2.2; // expected-error {{expression is not assignable using property assignment syntax}}
self.size.width = 2.2; // expected-error {{expression is not assignable}}
}
- (NSSize)size {}
@end