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. */
4 /* { dg-do compile } */
6 #include "../objc-obj-c++-shared/TestsuiteObject.h"
10 @compatibility_alias MyObject TestsuiteObject;
11 @compatibility_alias FictitiousModule MyWpModule;
21 @interface FunnyModule: FictitiousModule <Img> /* { dg-error ".MyWpModule., superclass of .FunnyModule." } */
25 @interface MyProjWpModule : MyWpModule <MySelTarget, Img> /* { dg-error ".MyWpModule., superclass of .MyProjWpModule." } */ {
32 @interface AnotherModule: MyObject <MySelTarget>