Debian Codegraph @

gcc/testsuite/g++.dg/modules/inc-xlate-1_b.H

raw
1 // { dg-do preprocess }
2 // { dg-additional-options -fmodule-header }
3
4 #ifndef _STDIO_H
5 #define _STDIO_H
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 // Yes, inside extern "C" block :(
11 #include "inc-xlate-1_a.H"
12 #ifndef _STDARG_H
13 #error barf
14 #endif
15
16 #ifdef __cplusplus
17 }
18 #endif
19 #endif
20
21 // { dg-final { scan-file inc-xlate-1_b.i {import "[^\n]*inc-xlate-1_a.H" \[\[__translated\]\];\n} } }