1 2 3 4 5 6 7 8 9
//PR c++/28292 extern "Java" { struct A { void foo(void; // { dg-error "before|incomplete type|invalid use" } }; }