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/] [ns2.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do run }
namespace foo{
struct X{
int i;
void f();
static int k1,k2;
};
void X::f(){}
int var;
int X::k1;
}
using namespace foo;
X zzz;
int X::k2;
void andere_funktion()
{
zzz.f();
var=4;
}
int main(int,char**)
{
andere_funktion();
return 0;
}