From: Alexandre Oliva Date: Sun, 11 Oct 1998 18:53:41 +0000 (+0000) Subject: main1.C: New test. X-Git-Tag: prereleases/libgcj-0.1~2608 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72b1c4daac5e2d5df25f2d76e2f563c1b46ddb9d;p=thirdparty%2Fgcc.git main1.C: New test. * g++.old-deja/g++.ns/main1.C: New test. main() should only be reserved in the global namespace From-SVN: r22992 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f01ab0574c32..f421283a5e71 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 1998-10-11 Alexandre Oliva + * 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 diff --git a/gcc/testsuite/g++.old-deja/g++.ns/main1.C b/gcc/testsuite/g++.old-deja/g++.ns/main1.C new file mode 100644 index 000000000000..a820e0ad65a1 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.ns/main1.C @@ -0,0 +1,17 @@ +// Build don't link: + +// main is only reserved in the global namespace [basic.start.main]/3 + +// submitted by Gerald Gutierrez + +// excess errors test - XFAIL *-*-* + +namespace A { void main () { } } +namespace B { void main () { } } +namespace C { + void main () { } + namespace D { + void main () { } + } +} +