Debian Codegraph @

gcc/testsuite/gcc.dg/cpp/pr60014-3.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-save-temps -fpermissive -Wint-conversion" } */
3 #include "pr60014-3.h"
4
5 /* The line continuation on the next line is what triggers the problem here,
6 because it synchronizes the output line between the input source and the
7 preprocessed output (whereas without the line continuation, the
8 preprocessed output would be off by one line from having output a #pragma
9 on a line by itself). Therefore, the token streamer doesn't have a reason
10 to generate a line marker purely based on the line number. That gives it
11 the chance to consider whether instead it needs to generate a line marker
12 based on a change of the "in-system-header" state, allowing us to test that
13 it comes to the right conclusion, which it did not, prior to this commit to
14 resolve PR60014. */
15 P(GCC diagnostic) \
16 const char *should_warn = 1; /* { dg-warning {-Wint-conversion} } */