gcc/testsuite/gfortran.dg/diagnostic-format-sarif-pr105916.f90
raw| 1 | ! { dg-options "-fdiagnostics-format=sarif-file -fmax-errors=1 -Wfatal-errors" } |
| 2 | |
| 3 | program main |
| 4 | implicit none |
| 5 | print*, "Hello World!" |
| 6 | end program main |
| 7 | |
| 8 | ! Verify that some JSON was written to a file with the expected name. |
| 9 | ! { dg-final { verify-sarif-file } } */ |
| 10 | |
| 11 | ! We expect a successful invocation and no results: |
| 12 | ! { dg-final { scan-sarif-file "\"executionSuccessful\": true" } } |
| 13 | ! { dg-final { scan-sarif-file "\"results\": \\\[\\\]" } } |