1 /* { dg-do compile } */
2 /* { dg-options "-fdiagnostics-format=sarif-file" } */
4 /* Verify that SARIF output can capture secondary locations
5 relating to a diagnostic. */
7 int missing_semicolon (void)
12 /* We expect a failing compile due to the error, but the use of
13 -fdiagnostics-format=sarif-file means there should be no output to stderr.
14 DejaGnu injects this message; ignore it:
15 { dg-prune-output "exit status is 1" } */
17 /* Verify that some JSON was written to a file with the expected name:
18 { dg-final { verify-sarif-file } } */
20 /* Use a Python script to verify various properties about the generated
22 { dg-final { run-sarif-pytest missing-semicolon.c "test-missing-semicolon.py" } } */