☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
vla-2.c
☽
☼
gcc/testsuite/c-c++-common/ubsan/vla-2.c
code
plain
raw
1
/* { dg-do run } */
2
/* { dg-options "-fsanitize=vla-bound -Wall -Wno-unused-variable -fno-sanitize-recover=vla-bound" } */
3
4
int
5
main (void)
6
{
7
const int t = 0;
8
struct s {
9
int x;
10
/* Don't instrument this one. */
11
int g[t];
12
};
13
return 0;
14
}