Debian Codegraph @

gcc/testsuite/c-c++-common/diagnostic-format-sarif-file-header-role.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fdiagnostics-format=sarif-file" } */
3
4 /* Generate a warning in a header file. */
5 #include "diagnostic-format-sarif-file-header-role.h"
6
7 /* Verify that some JSON was written to a file with the expected name. */
8 /* { dg-final { verify-sarif-file } } */
9
10 /* Verify that the header file's "role" is "resultFile", as per "NOTE 3"
11 in SARIF v2.1.0 section 3.24.6. */
12 /* { dg-final { scan-sarif-file "\"roles\": \\\[\"resultFile\"\\\]" } } */