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++.robertl/] [eb121.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
class A {
private:
int i1_;
public:
void f(int const i1 = 1); // { dg-error "previous specification" }
};
void
A::f(int const i1 = 1) // { dg-error "default argument given" }
{
i1_ = i1;
}
int
main()
{
A a;
a.f();
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log