aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/sarif-output/no-diagnostics.c
blob: 539ebda198672d09af3545cc7f9d3ff42eb98703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-fdiagnostics-format=sarif-file" } */

/* Verify our SARIF output for a translation unit with no diagnostics.  */

int nonempty;

/* Verify that some JSON was written to a file with the expected name:
   { dg-final { verify-sarif-file } } */

/* Use a Python script to verify various properties about the generated
   .sarif file:
   { dg-final { run-sarif-pytest no-diagnostics.c "no-diagnostics.py" } } */