Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/torture/pr42871.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 struct C |
2 { | |
3 ~C (); | |
4 int c3; | |
5 }; | |
6 | |
7 C *b2; | |
8 | |
9 static void | |
10 b1 (const C &x, unsigned b3, unsigned b4) | |
11 { | |
12 unsigned i = 0; | |
13 for (; i < b3; i++) | |
14 if (i < b4) | |
15 { | |
16 b2[0].c3 = x.c3; | |
17 return; | |
18 } | |
19 } | |
20 | |
21 int a (); | |
22 | |
23 void | |
24 bar (unsigned b3, unsigned b4) | |
25 { | |
26 C c[100]; | |
27 for (int i = 0; i < 100; i++) | |
28 { | |
29 c[i].c3 = i; | |
30 for (int j = 0; j < b3; j++) | |
31 if (j < b4) | |
32 { | |
33 b2[0].c3 = 0; | |
34 break; | |
35 } | |
36 b1 (c[i], b3, b4); | |
37 a (); | |
38 } | |
39 } | |
40 |