Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist-array18.C

raw
1 // PR c++/108773
2 // { dg-do compile { target c++11 } }
3
4 #include <initializer_list>
5
6 namespace std {
7 struct __new_allocator {};
8 struct allocator : __new_allocator {};
9 template <typename T>
10 struct basic_string {
11 basic_string(const T *, allocator = allocator());
12 ~basic_string();
13 };
14 using string = basic_string<char>;
15 template <typename T>
16 struct array {
17 T _M_elems;
18 };
19 template <typename T>
20 struct list {
21 list &operator=(initializer_list<T>);
22 };
23 }
24 struct RGWSyncTraceManager {
25 std::list<std::array<std::string>> admin_commands;
26 void hook_to_admin_command();
27 };
28 void RGWSyncTraceManager::hook_to_admin_command() {
29 admin_commands = {{""}, {""}};
30 }