blob: b6c82ef16e615e23e5f430de9e4b19f3cd5e978f [file] [log] [blame]
// PR c++/83489
// { dg-options "-Wabi=11" }
struct A
{
A foo(void i = 0); // { dg-error "incomplete type|invalid use" }
};
void bar()
{
A().foo();
}
A A::foo(void i) // { dg-error "incomplete type|invalid use" }
{
return A();
}