URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [overload21.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
struct X {
void f (int = 4, char = 'r'); // { dg-error "previous specification" }
void g (int = 4, char = 'r'); // { dg-error "previous specification" }
};
void
X::f (int i = 4, char x = 'r') // { dg-error "default argument" }
{ }
void
X::g (int i = 9, char x = 's') // { dg-error "default argument" }
{ }