summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2016-10-19 14:13:21 +0000
committerHaojian Wu <hokein@google.com>2016-10-19 14:13:21 +0000
commit67bb651ad165f56cdc7ceacd10e860b291572a58 (patch)
tree3b2bc346e28d27086f5b9c071373eb937754a977 /clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp
parent2c3cdd66d27e046547315e9a1480c6ae32ad2bde (diff)
downloadbcm5719-llvm-67bb651ad165f56cdc7ceacd10e860b291572a58.tar.gz
bcm5719-llvm-67bb651ad165f56cdc7ceacd10e860b291572a58.zip
[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
Diffstat (limited to 'clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp')
-rw-r--r--clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp12
1 files changed, 12 insertions, 0 deletions
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
OpenPOWER on IntegriCloud