summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/id.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/id.m')
-rw-r--r--test/SemaObjC/id.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/SemaObjC/id.m b/test/SemaObjC/id.m
index 98904fe..206127a 100644
--- a/test/SemaObjC/id.m
+++ b/test/SemaObjC/id.m
@@ -9,7 +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; T = S;
+ S = T; // expected-warning {{incompatible pointer types assigning 'Class', expected 'id<Foo>'}}
+ T = S; // expected-warning {{incompatible pointer types assigning 'id<Foo>', expected 'Class'}}
R = T; T = R;
R = S; S = R;
}
OpenPOWER on IntegriCloud