aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/g++.dg/cpp0x/initlist23.C
blob: 48a997fca205b2370feb22f98c9ee238149595d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-options "-std=c++0x" }

#include <initializer_list>

struct A
{
  A& operator=(int i);
  A& operator=(std::initializer_list<int> l) { return *this; }
};

int main()
{
  A a;
  a = { };
}