aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/main1.C
blob: 0e5a07f6aae901321ef968415107be8ce11fb649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link:

// main is only reserved in the global namespace [basic.start.main]/3

// submitted by Gerald Gutierrez <gutier@intergate.bc.ca>

namespace A { void main () { } }
namespace B { void main () { } }
namespace C {
  void main () { }
  namespace D {
    void main () { }
  }
}