Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fdiagnostics-format=sarif-file -ftime-report" } */
3
4 #warning message
5
6 /* Verify that some JSON was written to a file with the expected name. */
7 /* { dg-final { verify-sarif-file } } */
8
9 /* We expect various properties.
10 The indentation here reflects the expected hierarchy, though these tests
11 don't check for that, merely the string fragments we expect.
12
13 { dg-final { scan-sarif-file {"invocations": } } }
14 { dg-final { scan-sarif-file {"properties": } } }
15 { dg-final { scan-sarif-file {"gcc/timeReport": } } }
16 { dg-final { scan-sarif-file {"timevars": } } }
17 { dg-final { scan-sarif-file {"name": "TOTAL",} } }
18 */