Debian Codegraph @

gcc/testsuite/gcc.dg/asan/pr95051.c

raw
1 /* PR sanitizer/95051 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4
5 struct a {
6 struct {
7 struct {
8 int b;
9 } c;
10 };
11 };
12 struct d {
13 struct {
14 int e;
15 } f;
16 }
17
18 g(int h) {
19 struct a *i;
20 struct d *j = (struct d*)&h;
21 i->c.b = j->f.e;
22 }