From 67bb651ad165f56cdc7ceacd10e860b291572a58 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 19 Oct 2016 14:13:21 +0000 Subject: [clang-move] Move using-decl in old cc. Summary: Another fix is to move the whole anonymous namespace declaration completely instead of moving fun/var declarations only. Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25762 llvm-svn: 284592 --- .../test/clang-move/Inputs/multiple_class_test.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp') diff --git a/clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp b/clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp index 3e62ea836c1..691cffeb23d 100644 --- a/clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp +++ b/clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp @@ -6,7 +6,16 @@ int Move1::f() { } } // namespace a +namespace { +using a::Move1; +using namespace a; +static int k = 0; +} // anonymous namespace + namespace b { +using a::Move1; +using namespace a; +using T = a::Move1; int Move2::f() { return 0; } @@ -14,6 +23,8 @@ int Move2::f() { namespace c { int Move3::f() { + using a::Move1; + using namespace b; return 0; } @@ -30,6 +41,7 @@ int EnclosingMove5::Nested::f() { int EnclosingMove5::Nested::b = 1; int NoMove::f() { + static int F = 0; return 0; } } // namespace c -- cgit v1.2.3