Debian Codegraph @

gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-1-json.c

raw
1 /* { dg-additional-options "-fdiagnostics-format=json-file" } */
2
3 /* The custom JSON format doesn't support text art, so this is just a simple
4 smoketext. */
5
6 #include <stdint.h>
7
8 int32_t arr[10];
9
10 void int_arr_write_element_after_end_off_by_one(int32_t x)
11 {
12 arr[10] = x;
13 }