Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-array4.C
blob: af2045d9bbe172963cd7e6494dcfaf70e5974899 [
file
] [
log
] [
blame
]
// PR c++/58636
// { dg-do compile { target c++11 } }
#include
<initializer_list>
// { dg-error "pointer to reference" "" { target *-*-* } 0 }
int
foo
(
std
::
initializer_list
<
int
&&>);
int
i
=
foo
({
0
});
// { dg-error "std::initializer_list" }