Debian Codegraph @

gcc/testsuite/g++.dg/modules/internal-14_c.C

raw
1 // PR c++/120412
2 // { dg-additional-options "-fmodules -std=c++20" }
3
4 import m;
5
6 int main() {
7 // { dg-error "instantiation exposes TU-local entity '(fun1|Dodgy)'" "" { target *-*-* } 0 }
8 fun2(123); // { dg-message "required from here" }
9 }