| 1 |
/* Test of an ICE triggered within a header file with SARIF 2.1 */ |
| 2 |
|
| 3 |
/* { dg-do compile } */ |
| 4 |
/* { dg-options "-fdiagnostics-format=sarif-file" } */ |
| 5 |
/* { dg-additional-options "-fno-report-bug" } */ |
| 6 |
|
| 7 |
#include "crash-test-ice-in-header.h" /* { dg-ice "" } */ |
| 8 |
/* { dg-regexp "during GIMPLE pass: crash_test" } */ |
| 9 |
|
| 10 |
/* Verify that some JSON was written to a file with the expected name. */ |
| 11 |
/* { dg-final { verify-sarif-file "2.1" } } |
| 12 |
|
| 13 |
{ dg-final { run-sarif-pytest crash-test-ice-in-header-sarif-2.1.c "crash-test-ice-in-header-sarif-2_1.py" } } */ |