annotate gcc/testsuite/objc.dg/super-class-4.m @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Bail out gracefully if attempting to derive from a class that has only been
kono
parents:
diff changeset
2 forward-declared (via @class). Conversely, @compatibility_alias declarations
kono
parents:
diff changeset
3 should be traversed to find the @interface. */
kono
parents:
diff changeset
4 /* { dg-do compile } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 #include "../objc-obj-c++-shared/TestsuiteObject.h"
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 @class MyWpModule;
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 @compatibility_alias MyObject TestsuiteObject;
kono
parents:
diff changeset
11 @compatibility_alias FictitiousModule MyWpModule;
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 @protocol MySelTarget
kono
parents:
diff changeset
14 - (id) meth1;
kono
parents:
diff changeset
15 @end
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 @protocol Img
kono
parents:
diff changeset
18 - (id) meth2;
kono
parents:
diff changeset
19 @end
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 @interface FunnyModule: FictitiousModule <Img> /* { dg-error ".MyWpModule., superclass of .FunnyModule." } */
kono
parents:
diff changeset
22 - (id) meth2;
kono
parents:
diff changeset
23 @end
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 @interface MyProjWpModule : MyWpModule <MySelTarget, Img> /* { dg-error ".MyWpModule., superclass of .MyProjWpModule." } */ {
kono
parents:
diff changeset
26 id i1, i2;
kono
parents:
diff changeset
27 }
kono
parents:
diff changeset
28 - (id) meth1;
kono
parents:
diff changeset
29 - (id) meth2;
kono
parents:
diff changeset
30 @end
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 @interface AnotherModule: MyObject <MySelTarget>
kono
parents:
diff changeset
33 - (id) meth1;
kono
parents:
diff changeset
34 @end