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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [friend27.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/15265
2
 
3
enum Relation {equalOp};
4
template
5
class A {
6
public:
7
    static
8
    bool    Relop(const A&, const A&, Relation);
9
 
10
    friend
11
    bool    operator==(const A& a1, const A& a2) {
12
      return Relop(a1, a2, equalOp);
13
    }
14
  B* b;
15
};
16
 
17
int main() {
18
  A a; a == a;
19
  return 0;
20
}
21
 
22
 

powered by: WebSVN 2.1.0

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