blob: cfee4f4c495b46f60211ab5a43c0b07955daf8bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// { dg-do assemble }
// GROUPS passed prefix-postfix
class foo {
public:
operator ++ (); // { dg-error "" } no type or storage class
};
int main()
{
foo x;
// This should fall back to calling operator++(), and be an error with
// the -pedantic flag.
x++;// { dg-error "" }
}
|