aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/prepost1.C
blob: ba1a2084efe1288b7046e76ccb32bff7236b3c36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link: 
// GROUPS passed prefix-postfix
class foo {
public:
      operator ++ (); // ERROR - no type or storage class
};

main()
{
  foo x;

  // This should fall back to calling operator++(), and be an error with
  // the -pedantic flag.
  x++;// ERROR - 
}