2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / overload31.C
blob18dc213a5b5273b4265972c39e2c2eba90744969
1 // { dg-do assemble  }
2 // PRMS Id: 6568
3 // Bug: g++ complains about the ambiguous conversion to bool even though
4 // we wouldn't end up using it anyway.
6 class AString
8 public:
9     AString (unsigned len);
10     operator char *() const;
11     operator char const *() const;
14 void
15 foo(unsigned t, AString const & handle)
19 void
20 foo(AString const & handle, bool includeSpecials)
22     unsigned t;
23     foo(t, handle);