libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / plugin / diagnostic-test-metadata-sarif.c
blob246a8429090dbd49e38b29bdfd29d7c000e8671f
1 /* { dg-do compile } */
2 /* { dg-options "-fdiagnostics-format=sarif-file" } */
4 extern char *gets (char *s);
6 void test_cwe (void)
8 char buf[1024];
9 gets (buf);
12 /* Verify that some JSON was written to a file with the expected name. */
13 /* { dg-final { verify-sarif-file } } */
15 /* Use a Python script to verify various properties about the generated
16 .sarif file:
17 { dg-final { run-sarif-pytest diagnostic-test-metadata-sarif.c "diagnostic-test-metadata-sarif.py" } } */