Debian Codegraph @

gcc/testsuite/gcc.dg/sarif-output/bad-pragma.c

raw
1 /* Verify that SARIF output can capture URLs in diagnostics
2 related to a bad pragma. */
3
4 /* { dg-do compile } */
5 /* { dg-options "-fdiagnostics-format=sarif-file -Wpragmas" } */
6
7 #pragma GCC diagnostic ignored "-Wmisleading-indenttion"
8
9 int nonempty;
10
11 /* Verify that some JSON was written to a file with the expected name:
12 { dg-final { verify-sarif-file } } */
13
14 /* Use a Python script to verify various properties about the generated
15 .sarif file:
16 { dg-final { run-sarif-pytest bad-pragma.c "bad-pragma.py" } } */