URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ns/] [ns11.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// Build don't link
// Check [namespace.memdef]/2
namespace A{
void f(int);
void f(int,int);
int i; // { dg-error "" } .*
}
void A::f(){} // { dg-error "" } should have been declared before
namespace B{
void A::f(int){} // { dg-error "" } B does not surround A
}
int A::i; // { dg-error "" } redefinition
void A::f(int,int){} // ok