Author: alexfh Date: Fri May 12 06:24:58 2017 New Revision: 302890 URL: http://llvm.org/viewvc/llvm-project?rev=302890&view=rev Log: [clang-tidy] Add a test for PR33020
Fix committed in clang as r302889. Modified: clang-tools-extra/trunk/test/clang-tidy/misc-use-after-move.cpp Modified: clang-tools-extra/trunk/test/clang-tidy/misc-use-after-move.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/misc-use-after-move.cpp?rev=302890&r1=302889&r2=302890&view=diff ============================================================================== --- clang-tools-extra/trunk/test/clang-tidy/misc-use-after-move.cpp (original) +++ clang-tools-extra/trunk/test/clang-tidy/misc-use-after-move.cpp Fri May 12 06:24:58 2017 @@ -1137,3 +1137,23 @@ void ifStmtSequencesDeclAndCondition() { } } } + +namespace PR33020 { +class D { + ~D(); +}; +struct A { + D d; +}; +class B { + A a; +}; +template <typename T> +class C : T, B { + void m_fn1() { + int a; + std::move(a); + C c; + } +}; +} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits