summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/operators6.C
blob: 8ac3df13fde21b9a464261fd0f091b9170462de2 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// GROUPS passed operators
class a {
public:
    a* operator->() { return this; }
    void p();
};

void a::p() {
  operator->();
}