Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
template28.C
blob: 6c56d4555b116980a12532f6618f1be2ea68898a [
file
] [
log
] [
blame
]
// { dg-do assemble }
// GROUPS passed templates
class
X
{
const
char
*
fptr
;
public
:
X
(
const
char
*
ptr
)
{
fptr
=
ptr
;
}
operator
const
char
*()
{
return
fptr
;
}
};
int
main
(){
X x1
(
"1234"
);
X x2
(
x1
+
1
);
}