aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/cxx0x-initializer-constructor.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2012-02-27 22:38:26 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2012-02-27 22:38:26 +0000
commitadfb535905a7ca4226d06a29ebc665085503afd5 (patch)
tree7436a2459c36152553bd923a94dd31b9ed73604f /test/SemaCXX/cxx0x-initializer-constructor.cpp
parent8ec5ce21187e9ad7fb5cf86079a0579e9ca068ce (diff)
Implement a FIXME for conversion sequence distinction. Should fix PR12092.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/cxx0x-initializer-constructor.cpp')
-rw-r--r--test/SemaCXX/cxx0x-initializer-constructor.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/SemaCXX/cxx0x-initializer-constructor.cpp b/test/SemaCXX/cxx0x-initializer-constructor.cpp
index 2fd30614d1..5e686d7152 100644
--- a/test/SemaCXX/cxx0x-initializer-constructor.cpp
+++ b/test/SemaCXX/cxx0x-initializer-constructor.cpp
@@ -194,3 +194,21 @@ namespace objects {
H h4 = {1, 1}; // expected-error {{no matching constructor}}
};
}
+
+namespace PR12092 {
+
+ struct S {
+ S(const char*);
+ };
+ struct V {
+ template<typename T> V(T, T);
+ void f(std::initializer_list<S>);
+ void f(const V &);
+ };
+
+ void g() {
+ extern V s;
+ s.f({"foo", "bar"});
+ }
+
+}