Debian Codegraph @

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

raw
1 // { dg-additional-options "-fmodules-ts" }
2
3 import foo;
4
5 static int also_not_exported; // ok
6
7 void X ()
8 {
9 implicit_export::bob ();
10 }
11
12 static int implicit_export; // { dg-error "different kind" }
13
14 void Y ()
15 {
16 also_not_exported = 1;
17 }