1 2 3 4 5 6 7 8 9 10 11 12
// { dg-additional-options -fmodules-ts } extern "C++" { import "lang-1_a.H"; } extern "C" import "lang-1_a.H"; // { dg-error "cannot appear directly" } extern "C" int cfunc (int); // { dg-error "conflicting declaration" } extern "C" int cxxfunc (int);