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>
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
sqr(const TYPE & x)16 sqr(const TYPE& x) {
17     return 1;
18 }
f(const int t)19 int f(const int t) { return sqr(t); }
20