aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist63.C
blob: 00940479af2490c65fd64b2a7ab23e9275a989fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Origin PR c++/51475
// { dg-do compile { target c++11 } }

#include <initializer_list>

struct A
{
    A(int*);
};

struct B
{
    const std::initializer_list<A>& x;
};

B b = {{1}}; // { dg-error "" }