gcc/testsuite/gfortran.dg/diagnostic-format-json-pr105916.F90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-options "-fdiagnostics-format=json-stderr -fmax-errors=1 -Wfatal-errors" } |
| 3 | |
| 4 | program main |
| 5 | implicit none |
| 6 | print*, "Hello World!" |
| 7 | end program main |
| 8 | |
| 9 | ! We expect an empty array as the JSON output. |
| 10 | #if 0 |
| 11 | { dg-begin-multiline-output "" } |
| 12 | [] |
| 13 | { dg-end-multiline-output "" } |
| 14 | #endif |