Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/asan/pr95051.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
145:1830386684a0 | 152:2b5abeee2509 |
---|---|
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 } |