xref: /llvm-project/clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp (revision 67bb651ad165f56cdc7ceacd10e860b291572a58)
1 #include "multiple_class_test.h"
2 
3 namespace a {
4 int Move1::f() {
5   return 0;
6 }
7 } // namespace a
8 
9 namespace {
10 using a::Move1;
11 using namespace a;
12 static int k = 0;
13 } // anonymous namespace
14 
15 namespace b {
16 using a::Move1;
17 using namespace a;
18 using T = a::Move1;
19 int Move2::f() {
20   return 0;
21 }
22 } // namespace b
23 
24 namespace c {
25 int Move3::f() {
26   using a::Move1;
27   using namespace b;
28   return 0;
29 }
30 
31 int Move4::f() {
32   return 0;
33 }
34 
35 int EnclosingMove5::a = 1;
36 
37 int EnclosingMove5::Nested::f() {
38   return 0;
39 }
40 
41 int EnclosingMove5::Nested::b = 1;
42 
43 int NoMove::f() {
44   static int F = 0;
45   return 0;
46 }
47 } // namespace c
48