From d09472e7216c2e9a845a919061089f6aa12e2cf3 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Fri, 12 May 2017 11:24:58 +0000 Subject: [PATCH] [clang-tidy] Add a test for PR33020 Fix committed in clang as r302889. llvm-svn: 302890 --- .../test/clang-tidy/misc-use-after-move.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/clang-tools-extra/test/clang-tidy/misc-use-after-move.cpp b/clang-tools-extra/test/clang-tidy/misc-use-after-move.cpp index aac901c..970364b 100644 --- a/clang-tools-extra/test/clang-tidy/misc-use-after-move.cpp +++ b/clang-tools-extra/test/clang-tidy/misc-use-after-move.cpp @@ -1137,3 +1137,23 @@ void ifStmtSequencesDeclAndCondition() { } } } + +namespace PR33020 { +class D { + ~D(); +}; +struct A { + D d; +}; +class B { + A a; +}; +template +class C : T, B { + void m_fn1() { + int a; + std::move(a); + C c; + } +}; +} -- 2.7.4