/cp
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / prepost3.C
blobf55c3dc35b3890f2c7700c0799ffc99387be2223
1 // { dg-do assemble  }
2 // GROUPS passed prefix-postfix
3 class Y {
4 public:
5    friend Y operator++ (Y&);
6    friend Y operator++ (Y&, char);  // { dg-error "13:postfix .Y operator\\+\\+\\(Y&, char\\). must have .int. as its second argument" }
7 };