1 /* Check that -fdiagnostics-format=json-file works. */
2 /* { dg-do compile } */
3 /* { dg-options "-fdiagnostics-format=json-file" } */
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\"" } } */