From 72b1c4daac5e2d5df25f2d76e2f563c1b46ddb9d Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sun, 11 Oct 1998 18:53:41 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/g++.old-deja/g++.ns/main1.C | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.ns/main1.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f01ab0574c3..f421283a5e7 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 00000000000..a820e0ad65a --- /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 () { } + } +} + -- 2.30.2