FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / operator2.C
blob477616086a2aa7ebf47069844fa42e1b02e11fda
1 // PRMS Id: 6018
2 // Build don't link:
4 class string {
5     char *p;
6 public:
7     string(const char* s) ;// { p == s; }
8     operator const char*() ;// { return s; }
9 };
11 void f4(string& s)
13         *s;     // implies "s.operator const char*()"