| 1 | namespace ns { |
|---|---|
| 2 | |
| 3 | int i = 1; |
| 4 | |
| 5 | namespace ns { |
| 6 | |
| 7 | int i = 2; |
| 8 | |
| 9 | } // namespace ns |
| 10 | |
| 11 | } // namespace ns |
| 12 | |
| 13 | namespace { |
| 14 | int foo = 13; |
| 15 | } |
| 16 | |
| 17 | namespace ns1 { |
| 18 | namespace { |
| 19 | int foo = 5; |
| 20 | } |
| 21 | } // namespace ns1 |
| 22 | |
| 23 | namespace { |
| 24 | namespace ns2 { |
| 25 | namespace { |
| 26 | int foo = 7; |
| 27 | } |
| 28 | } // namespace ns2 |
| 29 | } // namespace |
| 30 | |
| 31 | int main(int argc, char **argv) { |
| 32 | int foo = 1; |
| 33 | |
| 34 | return foo + ::foo + ns1::foo + ns2::foo; // Set a breakpoint here |
| 35 | } |
| 36 |
