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
reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
template28.C
blob
6c56d4555b116980a12532f6618f1be2ea68898a
1
// { dg-do assemble }
2
// GROUPS passed templates
3
class X {
4
const char *fptr;
5
public:
6
X(const char *ptr) { fptr = ptr; }
7
operator const char*() { return fptr; }
8
};
9
10
int main(){
11
X x1("1234");
12
X x2(x1+1);
13
}