| 1 |
// Contributed by Dodji Seketeli <[email protected]> |
| 2 |
// Origin PR c++/38636 |
| 3 |
// { dg-do compile } |
| 4 |
|
| 5 |
struct A; // { dg-message "forward declaration of 'struct A'" } |
| 6 |
|
| 7 |
A::A( |
| 8 |
|
| 9 |
struct B; // { dg-error "expected '\\)' before ';' token|invalid use of incomplete type 'struct A'" } |
| 10 |
|