Debian Codegraph @

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

raw
1 // { dg-additional-options "-fmodules-ts" }
2
3 export module frob;
4 // { dg-module-cmi !frob }
5
6 namespace
7 {
8 // We shouldn't be complaining about members of internal linkage entities
9 class X {};
10 }
11
12 static int frob ()
13 {
14 return 1;
15 }
16
17 export int f (int = frob ()); // { dg-error "exposes TU-local entity" }
18 int goof (X &); // { dg-error "exposes TU-local entity" }