Debian Codegraph @

gcc/testsuite/g++.dg/modules/ambig-2_b.C

raw
1 // { dg-additional-options "-fmodules-ts" }
2 // { dg-module-cmi !B }
3
4 export module B;
5 import A;
6
7 extern "C++" int foo ();
8 extern "C++" int bar (); // { dg-error "ambiguating new declaration" }