URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* PR c++/2437 */
|
/* PR c++/2437 */
|
/* { dg-do run } */
|
/* { dg-do run } */
|
|
|
// Test of two-stage name lookup.
|
// Test of two-stage name lookup.
|
|
|
int g(double) { return 0; }
|
int g(double) { return 0; }
|
|
|
template struct X
|
template struct X
|
{
|
{
|
int f() { return g(2); } // should call g(double)
|
int f() { return g(2); } // should call g(double)
|
};
|
};
|
|
|
inline int g(int) { return 1; }
|
inline int g(int) { return 1; }
|
|
|
int main()
|
int main()
|
{
|
{
|
return X().f(); // should call g(double), but used to call g(int)
|
return X().f(); // should call g(double), but used to call g(int)
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.