URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [two-stage1.C] - Rev 384
Compare with Previous | Blame | View Log
/* PR c++/2437 */
/* { dg-do run } */
// Test of two-stage name lookup.
int g(double) { return 0; }
template <class T> struct X
{
int f() { return g(2); } // should call g(double)
};
inline int g(int) { return 1; }
int main()
{
return X<int>().f(); // should call g(double), but used to call g(int)
}