1 /* Bail out gracefully if attempting to derive from a class that has only been
2 forward-declared (via @class). Conversely, @compatibility_alias declarations
3 should be traversed to find the @interface. */
5 /* { dg-do compile } */
7 #include "../objc-obj-c++-shared/TestsuiteObject.h"
11 @compatibility_alias MyObject TestsuiteObject;
12 @compatibility_alias FictitiousModule MyWpModule;
22 @interface FunnyModule: FictitiousModule <Img> /* { dg-error ".MyWpModule., superclass of .FunnyModule." } */
26 @interface MyProjWpModule : MyWpModule <MySelTarget, Img> /* { dg-error ".MyWpModule., superclass of .MyProjWpModule." } */ {
33 @interface AnotherModule: MyObject <MySelTarget>