Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist23.C

raw
1 // { dg-do compile { target c++11 } }
2
3 #include <initializer_list>
4
5 struct A
6 {
7 A& operator=(int i);
8 A& operator=(std::initializer_list<int> l) { return *this; }
9 };
10
11 int main()
12 {
13 A a;
14 a = { };
15 }