gcc/testsuite/c-c++-common/diagnostic-format-json-file-1.c
raw| 1 | /* Check that -fdiagnostics-format=json-file works. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-fdiagnostics-format=json-file" } */ |
| 4 | |
| 5 | #warning message |
| 6 | |
| 7 | /* Verify that some JSON was written to a file with the expected name. */ |
| 8 | /* { dg-final { scan-file "diagnostic-format-json-file-1.c.gcc.json" "\"message\": \"#warning message\"" } } */ |