Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / parse / lookup5.C
blobafdf023b50b6fc29aa1abc55c68772420a6afb7c
1 // { dg-do compile }
3 struct A {};
5 template <class T> struct B
7   T a, b;
8   B() {}
9   B(T x, T y) : a(x), b(y) {}
10   template <class U> operator B<U> () const
11   { return B<U>((U)(this->a), (U)(this->b)); }
14 template <class T> struct C : public B<int>
16   T *c;
17   inline T & operator *() { return *c; }
20 template <class T> struct D : virtual public C<T> { };
22 void
23 foo (D<A> x)
25   *x;