1 // { dg-do assemble } 2 // { dg-options "" } 3 // PRMS Id: 9019 4 // Bug: g++ doesn't find conversion to const char *. 5 6 struct String { 7 String (); 8 explicit String (const char *); 9 operator const char * (); 10 }; 11 main(int argc,char ** argv)12int main(int argc, char **argv) 13 { 14 String deflt("no args"); 15 String useme; 16 17 const char *p = (argv[1]) ? argv[1] : deflt; 18 19 return 0; 20 } 21