aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/pr83489.C
blob: b6c82ef16e615e23e5f430de9e4b19f3cd5e978f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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();
}