summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/net43.C
blob: aadd03de92f39c12a41a4361d7a68bac7b9e8f6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// { dg-options "-ffriend-injection" }

class foo {
 public:
   friend int operator ^(const foo&, const foo&);
};

int main ()
{
   int (*funptr) (const foo &, const foo &)  = operator ^;
}