2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist23.C
blob7e73df06e18e948a20fa85ba15d95ec6e8dc2dbd
1 // { dg-do compile { target c++11 } }
3 #include <initializer_list>
5 struct A
7   A& operator=(int i);
8   A& operator=(std::initializer_list<int> l) { return *this; }
9 };
11 int main()
13   A a;
14   a = { };