Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / template / friend27.C
blob6317da577d028e5bc3a8624c9f44ca0dd2b40e8d
1 // PR c++/15265
3 enum Relation {equalOp};
4 template<typename B>
5 class A {
6 public:
7     static
8     bool    Relop(const A&, const A&, Relation);
10     friend
11     bool    operator==(const A& a1, const A& a2) {
12       return Relop(a1, a2, equalOp);
13     }
14   B* b;
17 int main() {
18   A<int> a; a == a;
19   return 0;