Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-template1.C
blob: a24e205d71c814768b2542676b0b9247b336c89c [
file
] [
log
] [
blame
]
// PR c++/70824
// { dg-do compile { target c++11 } }
#include
<initializer_list>
constexpr
int
max
(
std
::
initializer_list
<int>
__l
)
{
return
*
__l
.
begin
();
}
template
<
class
Src
>
void
a
()
{
const
int
v
=
max
({
1
});
}