OSDN Git Service

* c-common.h (lang_post_pch_load): New variable.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / abi / covariant2.C
1 // { dg-do compile }
2
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 12 Dec 2003 <nathan@codesourcery.com>
5 // Origin: grigory@stl.sarov.ru
6
7 // PR c++/12881. ICE in thunk generation
8
9 struct c1 {};
10
11 struct c3 : virtual c1
12 {
13     virtual c1* f6() {};
14     int i;
15 };
16
17 struct c6 : virtual c3 { };
18
19 struct c7 : c3
20 {
21     virtual c3* f6() {};
22 };
23
24 struct c24 : virtual c7
25 {
26     virtual c6* f6();
27 };
28
29 c6* c24::f6() {  return 0; }
30
31 struct c31 : c24 {};
32