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
This commit is contained in:
parent
7f6391b208
commit
72b1c4daac
2 changed files with 20 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
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
|
||||
|
||||
|
|
17
gcc/testsuite/g++.old-deja/g++.ns/main1.C
Normal file
17
gcc/testsuite/g++.old-deja/g++.ns/main1.C
Normal file
|
@ -0,0 +1,17 @@
|
|||
// 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 () { }
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue