Reset branch to trunk.
[official-gcc.git] / trunk / gcc / testsuite / g++.old-deja / g++.other / crash40.C
blob4eb0233b3ca83317fad43276fc9bcb2f19ca7126
1 // { dg-do assemble  }
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); }