Beispiel #1
0
void
A::Safe() const 
{
   Munge(i);	// { dg-error "" } should not be able to modify a const object
}
Beispiel #2
0
void
A::Safe() const 
{
   Munge(i);	        // { dg-error "invalid initialization" }
}