OSDN Git Service

* treelang/compile/var_defs.tree: Adjust.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb70.C
1 // { dg-do assemble  }
2 // conversion ops should be treated as coming from the most derived class
3 // for overload resolution.  See [over.match.funcs].
4
5 class X {
6 public:
7   operator bool() const;
8 };
9
10 class Y : public X {
11 private:
12   operator void*() const;
13 };
14
15 int f(Y const& y) {
16   return bool(y);
17 }