Sign in
gnu
/
gcc
/
1ba7adabf29eb671e418692fad076ea6edd08e3d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
var-templ28.C
blob: ba0927826534f5772200566d8153f782bc00ff74 [
file
] [
log
] [
blame
]
// PR c++/66210
// { dg-do compile { target c++14 } }
using
resultType
=
const
char
*;
template
<
typename
T
>
T pi
=
(
T
)(
3.1415926535897932385
);
template
<>
resultType pi
<resultType>
=
"pi"
;
void
foo
()
{
(
void
)
pi
<resultType>
;
}