blob: 206f36e481ebed595a5acc0274cda6d9cf09d680 [file] [log] [blame]
// PR c++/77284
// { dg-do compile { target c++11 } }
#include <initializer_list>
struct A
{
~A () {}
};
void foo (A & v)
{
for (A a : { v }) {};
}