FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / crash40.C
blob3af3f731a66a0d5fe127aa666f6bc8b36d52c2fd
1 // Build don't link:
2 // Copyright (C) 2001 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 11 April 2001 <nathan@codesourcery.com>
4 // Origin: Theo Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
6 // Bug 1917. We were considering thunks to clones to be clones. and
7 // hence getting confused.
9 struct A { virtual ~A(); };
10 struct B { virtual ~B(); };
12 struct C: public A,B {};
14 template <class TYPE>
15 inline TYPE
16 sqr(const TYPE& x) {
17     return 1;
19 int f(const int t) { return sqr(t); }