summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/overload11.C
blob: 0e8df404cb85052fbf0918da6630e64e9a8bd142 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// GROUPS passed overloading
class foo_int
{
public:
  int & i;

  foo_int (int &j) : i(j) {}
  void inc () { i++; }

};