diff options
Diffstat (limited to 'test/SemaCXX/cxx0x-initializer-constructor.cpp')
-rw-r--r-- | test/SemaCXX/cxx0x-initializer-constructor.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/test/SemaCXX/cxx0x-initializer-constructor.cpp b/test/SemaCXX/cxx0x-initializer-constructor.cpp index a14283ce7c..da10189257 100644 --- a/test/SemaCXX/cxx0x-initializer-constructor.cpp +++ b/test/SemaCXX/cxx0x-initializer-constructor.cpp @@ -237,7 +237,7 @@ namespace PR12167 { bool s = f(string<1>()); } -namespace PR12257 { +namespace PR12257_PR12241 { struct command_pair { command_pair(int, int); @@ -253,14 +253,9 @@ namespace PR12257 { generator_pair(const command_map); }; - const std::initializer_list<generator_pair> x = - { - { - { - { - {3, 4} - } - } - } - }; + // 5 levels: init list, gen_pair, command_map, init list, command_pair + const std::initializer_list<generator_pair> x = {{{{{3, 4}}}}}; + + // 4 levels: init list, gen_pair, command_map via init list, command_pair + const std::initializer_list<generator_pair> y = {{{{1, 2}}}}; } |