[AArch64] Merge stores of D-register values with different modes
[official-gcc.git] / gcc / testsuite / obj-c++.dg / comp-types-8.mm
blob6db76bb20f3d3dc0304d45810ea4cfa0bbdf2906
1 /* { dg-do compile } */
2 /* { dg-additional-options "-Wno-return-type" } */
4 /* We used to ICE because we removed the cast to List_linked*
5    in -[ListIndex_linked next]. */
7 @interface List
9 @public
10   int firstLink;
12 @end
14 @interface ListIndex_linked
16 @public
17   List *collection;
18   int link;
20 @end
22 @interface List_linked: List
23 @end
25 @implementation List
26 @end
28 @implementation ListIndex_linked
29 - next
31    link = ((List_linked*)collection)->firstLink;
33 @end