URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
|
|
// This testcase won't fail if class ::foo is forward-declared in the
|
// This testcase won't fail if class ::foo is forward-declared in the
|
// global namespace, nor if class bar is not a template class.
|
// global namespace, nor if class bar is not a template class.
|
|
|
template
|
template
|
class bar {
|
class bar {
|
public:
|
public:
|
friend class foo; // this is not bar::foo, it forward-declares ::foo
|
friend class foo; // this is not bar::foo, it forward-declares ::foo
|
class foo {};
|
class foo {};
|
bar() { foo(); } // but this should refer to bar::foo
|
bar() { foo(); } // but this should refer to bar::foo
|
};
|
};
|
|
|
bar<> baz;
|
bar<> baz;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.