OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [friend8.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Test that we look up a friend declared at top level ahead of an
2
// undeclared friend found by argument dependent lookup.
3
 
4
// { dg-do run }
5
 
6
int f(int) { return 0; }
7
 
8
struct S {
9
  friend int f(char) { return 1; }
10
};
11
 
12
int main () { return f('a'); }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.