Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/torture/20120420-1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do compile } int g, *gp[100]; struct V { int* x; int y; }; void foo (V **p, V* end, int i) { *p = 0; V* pp = *p; int s = 100; for (; pp < end; ) { pp++; (pp-1)->x = &g; if (g) { if (g>10) g++; int *t = (int*) operator new (100); (pp-1)->x = t; } else s--; gp[end-pp] = (pp-1)->x + s; } }