d: Fix gdc -O2 -mavx generates misaligned vmovdqa instruction [PR114171]
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / prepost2.C
blobcbd05e647b132040af417e389f85d0acdf07a3ce
1 // { dg-do assemble  }
2 // GROUPS passed initialization
3 class foo {
4 public:
5       operator ++ (); // { dg-error "" } no type or storage class
6       operator ++ (int); // { dg-error "" } no type or storage class
7       operator ++ (char);               // { dg-error "no type" }
8 // { dg-error "7:postfix .int foo::operator\\+\\+\\(char\\). must have .int. as its argument" "sec" { target *-*-* } .-1 }
9       operator ++ (short);              // { dg-error "no type" }
10 // { dg-error "7:postfix .int foo::operator\\+\\+\\(short int\\). must have .int. as its argument" "sec" { target *-*-* } .-1 }
11       operator ++ (long);               // { dg-error "no type" }
12 // { dg-error "7:postfix .int foo::operator\\+\\+\\(long int\\). must have .int. as its argument" "sec" { target *-*-* } .-1 }