blob: ee53900a7fdd93db811ed98d168effecd1db47d1 [file] [log] [blame]
int foo();
struct A
{
A() { return foo(); } // { dg-error "19:returning a value" }
~A() { return foo(); } // { dg-error "20:returning a value" }
void bar() { return foo(); } // { dg-error "26:return-statement with a value" }
};