URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [prepost1.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { 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 "" }
}
Go to most recent revision | Compare with Previous | Blame | View Log