2 // RUN: %clang_cc1 -x objective-c -fixit %t
3 // RUN: %clang_cc1 -x objective-c -Werror %t
5 void object_setClass(id, id);
6 Class object_getClass(id);
10 Class pr6302(id x123) {
13 x123->isa = (id)(x123->isa);
14 x123->isa = (id)x123->isa;
15 x123->isa = (x123->isa);
16 x123->isa = (id)(x123->isa);
21 @interface BaseClass {
23 Class isa; // expected-note 3 {{instance variable is declared here}}
27 @interface OtherClass {
30 Class isa; // note, not first ivar;
34 @interface Subclass : BaseClass @end
36 @interface SiblingClass : BaseClass @end
40 @interface hasIsa : Root {
42 Class isa; // note, isa is not in root class
46 @implementation Subclass