URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// Test that we look up a friend declared at top level ahead of an
|
// Test that we look up a friend declared at top level ahead of an
|
// undeclared friend found by argument dependent lookup.
|
// undeclared friend found by argument dependent lookup.
|
|
|
// { dg-do run }
|
// { dg-do run }
|
|
|
int f(int) { return 0; }
|
int f(int) { return 0; }
|
|
|
struct S {
|
struct S {
|
friend int f(char) { return 1; }
|
friend int f(char) { return 1; }
|
};
|
};
|
|
|
int main () { return f('a'); }
|
int main () { return f('a'); }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.