Debian Codegraph @

gcc/testsuite/g++.dg/modules/internal-3.C

raw
1 // { dg-additional-options "-fmodules-ts -Wno-global-module" }
2 // { dg-module-cmi !M }
3 // TU-local entities in the GMF can be exposed.
4
5 module;
6
7 static inline void foo() {}
8
9 export module M;
10
11 inline void bar() { // { dg-error "exposes TU-local entity" }
12 foo();
13 }
14
15 // OK
16 void qux() {
17 foo();
18 }