Debian Codegraph @

gcc/testsuite/gdc.test/compilable/ccompile.d

raw
1
2 /* REQUIRED_ARGS: -O
3 */
4
5 // Adapted from DMC++ test file test3/ccompile.c
6
7
8 struct HDS {
9 char state;
10 uint done;
11 uint retry;
12 uint[15] tests;
13 }
14
15 void funchds(char *p_adults)
16 {
17 int cupx, chemx;
18 HDS *p_cup;
19
20 for (cupx = 1, p_cup = null; cupx <= 48 ; cupx ++, p_cup ++)
21 {
22 for (chemx = 0; chemx < 15 ; chemx++)
23 {
24 if (p_cup.done) {
25 if (p_cup.tests [chemx]) {
26 *p_adults++ = 3;
27 }
28 if (p_cup.done && (p_cup.tests [chemx])) {
29 *p_adults++ = 4;
30 }
31 }
32 }
33 }
34 }