URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [conversion10.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// PRMS Id: 9019
// Bug: g++ doesn't find conversion to const char *.
struct String {
String ();
explicit String (const char *);
operator const char * ();
};
int main(int argc, char **argv)
{
String deflt("no args");
String useme;
const char *p = (argv[1]) ? argv[1] : deflt;
return 0;
}