Debian Codegraph @

gcc/testsuite/g++.dg/modules/pr98718_a.C

raw
1 // PR 98718 ICE with macro location data
2 // { dg-additional-options {-Wno-pedantic -fpreprocessed -fdirectives-only -fdump-lang-module-lineno -fmodules-ts} }
3 module ;
4
5 # 4 "inc_a" 1
6 #define _GLIBCXX_VISIBILITY(V) __attribute__ ((__visibility__ (#V)))
7
8 namespace std _GLIBCXX_VISIBILITY(default)
9 {
10
11 }
12 # 11 "" 2
13
14 export module hello:format;
15 // { dg-module-cmi hello:format }
16
17 // { dg-final { scan-lang-dump { Macro maps:0 locs:0} module } }
18 // { dg-final { scan-lang-dump-not { Macro:. _GLIBCXX_VISIBILITY} module } }