repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[PATCH 03/11] Handle typedefs for CodeView
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
conversion10.C
blob
0eeceebaae70780f44e70faa19353ff627cf9ff8
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
12
int 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
}