Debian Codegraph @

gcc/testsuite/gfortran.dg/diagnostic-format-sarif-1.F90

raw
1 ! { dg-do compile }
2 ! { dg-options "-fdiagnostics-format=sarif-file" }
3
4 #error 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 a failing compile due to the error, but the use of
10 ! -fdiagnostics-format=sarif-file means there should be no output to stderr.
11 ! DejaGnu injects this message; ignore it:
12 !
13 ! { dg-prune-output "exit status is 1" }
14
15
16 ! Use a Python script to verify various properties about the generated
17 ! .sarif file:
18 ! { dg-final { run-sarif-pytest diagnostic-format-sarif-1.F90 "diagnostic-format-sarif-1.py" } }