Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-conv2.C
blob: c64fb3d2fa0c2b63598d3e4caec781ec5fef86c7 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
template
<
int
I
>
void
f
();
struct
A
{
constexpr
operator
int
()
{
return
24
;
}
};
template
<
class
T
>
constexpr
void
g
(
T t
)
{
f
<t>
();
}
int
main
()
{
g
(
A
());
}