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

A operator+ (A, float);

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