Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fdiagnostics-format=sarif-file" } */
3
4 # 0 "this-file-does-not-exist.c"
5 #warning message
6
7 /* Verify that some JSON was written to a file with the expected name. */
8 /* { dg-final { verify-sarif-file } } */
9
10 /* ...and that it at least includes the warning
11 { dg-final { scan-sarif-file "\"message\": " } }
12 { dg-final { scan-sarif-file "\"text\": \"#warning message" } } */