1 /* { dg-do compile } */
2 /* { dg-additional-options " -fno-diagnostics-json-formatting -fdiagnostics-format=sarif-file" } */
8 void *ptr
= malloc (1024);
13 /* Verify SARIF output.
15 { dg-final { verify-sarif-file } }
17 The threadFlowLocation objects should have "kinds" properties
18 reflecting the meanings of the events:
19 { dg-final { scan-sarif-file "\"kinds\": \\\[\"acquire\", \"memory\"\\\]" } }
20 { dg-final { scan-sarif-file "\"kinds\": \\\[\"release\", \"memory\"\\\]" } }
21 { dg-final { scan-sarif-file "\"kinds\": \\\[\"danger\"\\\]" } }