Debian Codegraph @

gcc/testsuite/g++.dg/ubsan/pr59331.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fsanitize=vla-bound -Wall -Wno-unused-variable" } */
3
4 void foo(int i)
5 {
6 /* Don't warn here with "value computed is not used". */
7 char a[i];
8 }