Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / obj-c++.dg / comp-types-8.mm
blob490f4ff1938acdf1220a5fb0c43c005fbbb7e909
1 /* { dg-do compile } */
3 /* We used to ICE because we removed the cast to List_linked*
4    in -[ListIndex_linked next]. */
6 @interface List
8 @public
9   int firstLink;
11 @end
13 @interface ListIndex_linked
15 @public
16   List *collection;
17   int link;
19 @end
21 @interface List_linked: List
22 @end
24 @implementation List
25 @end
27 @implementation ListIndex_linked
28 - next
30    link = ((List_linked*)collection)->firstLink;
32 @end