summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/overload1.C
blob: 8a833aa2a34efee6ab812f8201e36946252795ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do run  }
struct A {
  A operator+ (int) const { return *this; }
};

A operator+ (A, float);

int main ()
{
  A a;
  a + 1;
}