(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
diagnostic-format-json-file-1.c
       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\"" } } */