aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/plugin/crash-test-write-though-null-stderr.c
blob: a9a211a3b1fea3371914894a02f36706de969583 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-additional-options "-fno-report-bug" } */

extern void inject_write_through_null (void);

void test_inject_write_through_null (void)
{
  inject_write_through_null (); /* { dg-ice "Segmentation fault" } */ 
  /* { dg-regexp "during GIMPLE pass: crash_test" } */
}