Debian Codegraph @

gcc/testsuite/gcc.dg/asan/nested-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fsanitize=address" } */
3
4 int f(int i) {
5 auto int h() {
6 int r;
7 int *p;
8
9 {
10 int x[3];
11
12 auto int g() {
13 return x[i];
14 }
15
16 p = &r;
17 *p = g();
18 }
19
20 return *p;
21 }
22
23 return h();
24 }