diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-02-17 19:36:19 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-02-17 19:36:19 +0000 |
commit | eb2854521a26d3f186018f1b119761ca7bb90dc2 (patch) | |
tree | 8cb7e2fc50b6c6580827cc26dc7c9a5921b4bdb2 /test/SemaCXX/cxx11-inheriting-ctors.cpp | |
parent | 3bae5253046bf2859f76e3d0d22f47a5fc0844c7 (diff) | |
download | src-eb2854521a26d3f186018f1b119761ca7bb90dc2.tar.gz src-eb2854521a26d3f186018f1b119761ca7bb90dc2.zip |
Vendor import of clang release_40 branch r295380:vendor/clang/clang-release_40-r295380
Notes
Notes:
svn path=/vendor/clang/dist/; revision=313883
svn path=/vendor/clang/clang-release_40-r295380/; revision=313884; tag=vendor/clang/clang-release_40-r295380
Diffstat (limited to 'test/SemaCXX/cxx11-inheriting-ctors.cpp')
-rw-r--r-- | test/SemaCXX/cxx11-inheriting-ctors.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/SemaCXX/cxx11-inheriting-ctors.cpp b/test/SemaCXX/cxx11-inheriting-ctors.cpp index c9e01188fd2e..7d6f4f09f09c 100644 --- a/test/SemaCXX/cxx11-inheriting-ctors.cpp +++ b/test/SemaCXX/cxx11-inheriting-ctors.cpp @@ -105,3 +105,31 @@ namespace PR31606 { // Note, we do *not* allow operator=='s argument to use the inherited A::A(Base&&) constructor to construct from B{}. bool b = A{} == B{}; // expected-error {{invalid operands}} } + +namespace implicit_member_srcloc { + template<class T> + struct S3 { + }; + + template<class T> + struct S2 { + S2(S3<T> &&); + }; + + template<class T> + struct S1 : S2<T> { + using S2<T>::S2; + S1(); + }; + + template<class T> + struct S0 { + S0(); + S0(S0&&) = default; + S1<T> m1; + }; + + void foo1() { + S0<int> s0; + } +} |