Debian Codegraph @

gcc/testsuite/g++.dg/modules/local-extern-1.C

raw
1 // { dg-additional-options "-fmodules-ts -Wno-pedantic" }
2
3 module;
4 # 4 __FILE__ 1
5 inline void frob ()
6 {
7 extern int bob; // OK
8 }
9
10 # 11 "" 2
11 export module bob;
12 // { dg-module-cmi !bob }
13
14 inline void dob ()
15 {
16 extern int bob; // { dg-error "block-scope extern" }
17 }