diff options
Diffstat (limited to 'test/SemaObjC/id.m')
-rw-r--r-- | test/SemaObjC/id.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaObjC/id.m b/test/SemaObjC/id.m index 206127a5ccef7..27b84dedf8e66 100644 --- a/test/SemaObjC/id.m +++ b/test/SemaObjC/id.m @@ -9,8 +9,8 @@ void foo() { // Test assignment compatibility of Class and id. No warning should be // produced. // rdar://6770142 - Class and id<foo> are compatible. - S = T; // expected-warning {{incompatible pointer types assigning 'Class', expected 'id<Foo>'}} - T = S; // expected-warning {{incompatible pointer types assigning 'id<Foo>', expected 'Class'}} + S = T; // expected-warning {{incompatible pointer types assigning to 'id<Foo>' from 'Class'}} + T = S; // expected-warning {{incompatible pointer types assigning to 'Class' from 'id<Foo>'}} R = T; T = R; R = S; S = R; } |