This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / testsuite / g++.dg / template / cond4.C
blob35416ba798fdd1a5a2c317f12a87ed2b51a6aa7c
1 // PR c++/14369
3 struct A { };
5 template<class T> 
6 struct X : A {
7    const A* bar() const
8    { return this; }
10    const A& foo() const;
13 template<class T>
14 const A& X<T>::foo() const
16    const A* t = bar();
17    return *(t ? t : throw 0);