blob: ce6505824882e8533b2751a86b8a8cdd70f5541c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* Verify using -fdiagnostics-add-output=sarif with the defaults. */
/* { dg-do compile } */
/* { dg-additional-options "-fdiagnostics-add-output=sarif" } */
/* Verify that SARIF output can capture secondary locations
relating to a diagnostic. */
int missing_semicolon (void)
{
return 42 /* { dg-error "expected ';' before '.' token" } */
}
/* Verify that JSON was written to the output file with the
expected version and expected name:
{ dg-final { verify-sarif-file "2.1" } } */
|