* g++.old-deja/g++.ns/main1.C: New test. main() should only be
reserved in the global namespace
From-SVN: r22992
1998-10-11 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * g++.old-deja/g++.ns/main1.C: New test. main() should only be
+ reserved in the global namespace
+
* g++.old-deja/g++.pt/instantiate4.C: New test: -frepo does not
generate needed virtual table
--- /dev/null
+// Build don't link:
+
+// main is only reserved in the global namespace [basic.start.main]/3
+
+// submitted by Gerald Gutierrez <gutier@intergate.bc.ca>
+
+// excess errors test - XFAIL *-*-*
+
+namespace A { void main () { } }
+namespace B { void main () { } }
+namespace C {
+ void main () { }
+ namespace D {
+ void main () { }
+ }
+}
+