blob: 246a8429090dbd49e38b29bdfd29d7c000e8671f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* { dg-do compile } */
/* { dg-options "-fdiagnostics-format=sarif-file" } */
extern char *gets (char *s);
void test_cwe (void)
{
char buf[1024];
gets (buf);
}
/* Verify that some JSON was written to a file with the expected name. */
/* { dg-final { verify-sarif-file } } */
/* Use a Python script to verify various properties about the generated
.sarif file:
{ dg-final { run-sarif-pytest diagnostic-test-metadata-sarif.c "diagnostic-test-metadata-sarif.py" } } */
|