Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/asan/pr95025.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
// { dg-do compile } // { dg-options "-O2 -fsanitize=address" } struct a { int b; } * c; struct d { d *e; }; struct f { bool done; d *g; }; int h; int i(f *j) { if (j->g) { j->g = j->g->e; return h; } j->done = true; return 0; } void k(bool j) { c->b = j; } void l() { f a; for (; !(&a)->done; i(&a)) k(true); }