blob: bd6a21a83bfb09d66cbb1f2d37640970c658d3e3 [file]
/* { dg-do compile } */
/* { dg-additional-options "-fno-report-bug" } */
/* { dg-additional-options "-fplugin-arg-crash_test_plugin-nested" } */
/* { dg-additional-options "-fdiagnostics-add-output=sarif" } */
/* { dg-additional-options "-fdiagnostics-add-output=experimental-html:javascript=no" } */
extern void inject_write_through_null (void);
void test_inject_write_through_null (void)
{
inject_write_through_null (); /* { dg-ice "Segmentation fault" } */
/* { dg-error "placeholder" "" { target *-*-* } .-1 } */
/* { dg-regexp "during GIMPLE pass: crash_test" } */
}
/* 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 crash-test-nested-write-through-null.c "crash-test-nested-write-through-null-sarif.py" } } */
/* Use a Python script to verify various properties about the generated
.html file:
{ dg-final { run-html-pytest crash-test-nested-write-through-null.c "crash-test-nested-write-through-null-html.py" } } */