Fix "maint print" error messages
[binutils-gdb.git] / gdb / testsuite / gdb.cp / shadow.cc
blob4c9fb12a7bbe95a89c3b7df2cb2782fabeec462a
1 namespace A
3 int x = 11;
6 int x = 22;
7 int y = 0;
9 class B
11 public:
12 int x;
14 int
15 func()
17 x = 33;
18 y++; // marker1
21 int x = 44;
22 y++; // marker2
25 int x = 55;
26 y++; // marker3
29 using namespace A;
30 y++; // marker4
33 using A::x;
34 y++; // marker5
39 return 0;
43 int
44 main()
46 B theB;
47 return theB.func();