summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2012-03-20 21:24:14 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2012-03-20 21:24:14 +0000
commit1cd89c4d60d7a458de733a4ea81d5580df82a652 (patch)
treea98162aff857d203484b9088bb1f1d79e31dee90 /test/SemaCXX
parentca8937111cccdbf7d17c349487a332d6c7c97f91 (diff)
More careful consideration of C++11 13.3.3.1p4. Fixes PR12257.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153130 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX')
-rw-r--r--test/SemaCXX/cxx0x-initializer-constructor.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/SemaCXX/cxx0x-initializer-constructor.cpp b/test/SemaCXX/cxx0x-initializer-constructor.cpp
index fdc882e049..a14283ce7c 100644
--- a/test/SemaCXX/cxx0x-initializer-constructor.cpp
+++ b/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<command_pair>);
+ };
+
+ struct generator_pair
+ {
+ generator_pair(const command_map);
+ };
+
+ const std::initializer_list<generator_pair> x =
+ {
+ {
+ {
+ {
+ {3, 4}
+ }
+ }
+ }
+ };
+}