aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-1-json.c
blob: 0a2cc3493ab4bf9c35caafe12c3c7852114b83fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-additional-options "-fdiagnostics-format=json-file" } */

/* The custom JSON format doesn't support text art, so this is just a simple
   smoketext.  */

#include <stdint.h>

int32_t arr[10];

void int_arr_write_element_after_end_off_by_one(int32_t x)
{
  arr[10] = x;
}