Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist23.C
blob: 7e73df06e18e948a20fa85ba15d95ec6e8dc2dbd [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
#include
<initializer_list>
struct
A
{
A
&
operator
=(
int
i
);
A
&
operator
=(
std
::
initializer_list
<int>
l
)
{
return
*
this
;
}
};
int
main
()
{
A a
;
a
=
{
};
}