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