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