From 6a0372513edbc473b538d2f724efac50405d6fef Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 10 Jun 2013 20:45:12 +0000 Subject: Vendor import of clang tags/RELEASE_33/final r183502 (effectively, 3.3 release): http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_33/final@183502 --- test/SemaCXX/cxx11-inheriting-ctors.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 test/SemaCXX/cxx11-inheriting-ctors.cpp (limited to 'test/SemaCXX/cxx11-inheriting-ctors.cpp') diff --git a/test/SemaCXX/cxx11-inheriting-ctors.cpp b/test/SemaCXX/cxx11-inheriting-ctors.cpp new file mode 100644 index 000000000000..67d55213a084 --- /dev/null +++ b/test/SemaCXX/cxx11-inheriting-ctors.cpp @@ -0,0 +1,28 @@ +// RUN: %clang_cc1 -std=c++11 %s -verify + +// expected-no-diagnostics + +namespace PR15757 { + struct S { + }; + + template struct T { + template T(X x, A &&a) {} + + template explicit T(A &&a) + noexcept(noexcept(T(X(), static_cast(a)))) + : T(X(), static_cast(a)) {} + }; + + template struct U : T { + using T::T; + }; + + U foo(char ch) { return U(ch); } + + int main() { + U a(42); + U b('4'); + return 0; + } +} -- cgit v1.2.3