1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
3 @class SUPER, Y; // expected-note 2 {{forward declaration of class here}}
5 @interface INTF :SUPER // expected-error {{attempting to use the forward class 'SUPER' as superclass of 'INTF'}}
10 @interface INTF1 : SUPER // expected-note {{previous definition is here}}
13 @interface INTF2 : INTF1
16 @interface INTF3 : Y // expected-error {{attempting to use the forward class 'Y' as superclass of 'INTF3'}} \
17 // expected-note{{'INTF3' declared here}}
20 @interface INTF1 // expected-error {{duplicate interface definition for class 'INTF1'}}
25 [super dealloc]; // expected-error {{'SUPER' cannot use 'super' because it is a root class}}
29 @interface RecursiveClass : RecursiveClass // expected-error {{trying to recursively use 'RecursiveClass' as superclass of 'RecursiveClass'}}
32 @implementation RecursiveClass
35 @implementation iNTF3 // expected-warning{{cannot find interface declaration for 'iNTF3'; did you mean 'INTF3'?}}