From d9170b09e6726491c587ebcd4e27a55bca186699 Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Tue, 20 Mar 2012 21:24:14 +0000 Subject: More careful consideration of C++11 13.3.3.1p4. Fixes PR12257. llvm-svn: 153130 --- .../test/SemaCXX/cxx0x-initializer-constructor.cpp | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'clang/test/SemaCXX/cxx0x-initializer-constructor.cpp') diff --git a/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp b/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp index fdc882e049e..a14283ce7c0 100644 --- a/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp +++ b/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp @@ -236,3 +236,31 @@ namespace PR12167 { bool s = f(string<1>()); } + +namespace PR12257 { + struct command_pair + { + command_pair(int, int); + }; + + struct command_map + { + command_map(std::initializer_list); + }; + + struct generator_pair + { + generator_pair(const command_map); + }; + + const std::initializer_list x = + { + { + { + { + {3, 4} + } + } + } + }; +} -- cgit v1.2.3