summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/main1.C
blob: e002d323cf3d352210da494779b0d4841ebb8941 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }

// 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 () { }
  }
}