testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / diagnostic-format-sarif-file-4.c
blobbd13da714250e1fd49637d1585b21dfd672430fe
1 /* { dg-do compile } */
2 /* { dg-options "-fdiagnostics-format=sarif-file" } */
3 /* { dg-excess-errors "The error is sent to the SARIF file, rather than stderr" } */
5 int test (void)
7 int 文字化け = *42;
10 /*
11 { dg-final { verify-sarif-file } }
13 { dg-final { scan-sarif-file "\"level\": \"error\"" } }
15 We expect the region expressed in display columns:
16 { dg-final { scan-sarif-file "\"startLine\": 7" } }
17 { dg-final { scan-sarif-file "\"startColumn\": 18" } }
18 { dg-final { scan-sarif-file "\"endColumn\": 21" } }
20 { dg-final { scan-sarif-file "\"text\": \" int \\u6587\\u5b57\\u5316\\u3051 = " } }