☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
bounds-14.c
☽
☼
gcc/testsuite/c-c++-common/ubsan/bounds-14.c
code
plain
raw
1
/* PR sanitizer/79558 */
2
/* { dg-do compile } */
3
/* { dg-options "-fsanitize=bounds" } */
4
5
void
6
fn1 (int n)
7
{
8
int i, j;
9
int x[2][0];
10
for (i = 0; i < n; i++)
11
for (j = 0; j < n; j++)
12
x[i][j] = 5;
13
}