(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
modules/
shadow-1_b.C
// { dg-additional-options -fmodules-ts }
import shadow;

// unfortunately not the exact same diagnostic in both cases :(

void stat (); // { dg-error "conflicts with import" }

struct stat {}; // { dg-error "in a different module" }