URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [nest3.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed nest
#include <iostream>
struct inner {
static void f() { std::cout << "inner::f()\n";}
};
struct outer {
struct inner {
static void f() { std::cout << "outer::inner::f()\n";}
};
static void f() {
inner::f(); //call of outer::inner::f()
::inner::f(); //(try to) call inner::f() => parse error
}
};
int main() {
outer::f();
std::cout << std::endl;
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log