2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / inline15.C
blob43f7f5e3025015147ce3387da95b169b9905cdb7
1 // { dg-do assemble  }
2 // { dg-options "-O1" }
3 // Origin: Jakub Jelinek <jakub@redhat.com>
5 class Type;
6 template<class E>
7 class X
9 public:
10   X<E>();
11   inline X<E>(int);
12   inline ~X<E>();
14 template<class E> const Type &foo(const X<E> *);
15 template<class E> inline X<E>::X(int x)
17   const Type &a = foo(this);
19 template<class E> inline X<E>::~X()
21   const Type &a = foo(this);
23 class Y
25   X<Type> a;
26 public:
27   Y(const X<Type> &x = X<Type>());
29 Y::Y(const X<Type> &x) : a(1)