Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-60245.C
blob: 803a2299677d8726777e83c742423d4ce3e9ad9c [
file
] [
log
] [
blame
]
// PR c++/60245
// { dg-do compile { target c++11 } }
constexpr
int
Apply
(
const
int
in
,
int
(*
f
)(
const
int
&))
{
return
f
(
in
);
}
using
Foo
=
int
;
static
constexpr
int
id
(
const
Foo
&
i
)
{
return
i
;
}
static
constexpr
int
results1
=
Apply
(
0
,
&
id
);