aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/plugin/crash-test-ice-in-header-sarif-2.1.c
blob: 823bbe43a1c0b018a788a2f7060491c8c19ef5db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Test of an ICE triggered within a header file with SARIF 2.1  */

/* { dg-do compile } */
/* { dg-options "-fdiagnostics-format=sarif-file" } */
/* { dg-additional-options "-fno-report-bug" } */

#include "crash-test-ice-in-header.h"  /* { dg-ice "" } */
/* { 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 "2.1" } }

   { dg-final { run-sarif-pytest crash-test-ice-in-header-sarif-2.1.c "crash-test-ice-in-header-sarif-2_1.py" } } */