Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/crash40.C

raw
1 // { dg-do assemble }
2 // Copyright (C) 2001 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 11 April 2001 <[email protected]>
4 // Origin: Theo Papadopoulo <[email protected]>
5
6 // Bug 1917. We were considering thunks to clones to be clones. and
7 // hence getting confused.
8
9 struct A { virtual ~A(); };
10 struct B { virtual ~B(); };
11
12 struct C: public A,B {};
13
14 template <class TYPE>
15 inline TYPE
16 sqr(const TYPE& x) {
17 return 1;
18 }
19 int f(const int t) { return sqr(t); }