Debian Codegraph @

gcc/testsuite/gcc.dg/ubsan/bounds-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fsanitize=bounds" } */
3
4 struct T { int c; char d[]; } t = { 1, "abcdefg" };
5
6 int
7 baz (int i)
8 {
9 return t.d[i];
10 }