6 * [ 2740884 ] Incorrect assignment in array of structs
7 * https://sourceforge.net/tracker/?func=detail&group_id=599&atid=100599&aid=2740884
9 * a bug in SDCCast.c:1883 isConformingBody()
11 * causing loopreversal to be erroneously applied here
13 * case... INC_OP and DEC_OP
16 * (compile "make -C .. ALL_TESTS=./tests/bug2740884.c")
28 for (i
= 1; i
<= 2; i
++)
29 doors
[i
].Route
= 0x24;
34 for (i
= 1; i
<= 2; i
++)
40 for (i
= 1; i
<= 2; i
++)
55 ASSERT(doors
[0].Route
== 0);
56 ASSERT(doors
[1].Route
== 0x24);
57 ASSERT(doors
[2].Route
== 0x24);
58 ASSERT(doors
[3].Route
== 0);
62 ASSERT(doors
[0].Route
== 0);
63 ASSERT(doors
[1].Route
== 0x25);
64 ASSERT(doors
[2].Route
== 0x25);
65 ASSERT(doors
[3].Route
== 0);
69 ASSERT(doors
[0].Route
== 0);
70 ASSERT(doors
[1].Route
== 0x24);
71 ASSERT(doors
[2].Route
== 0x24);
72 ASSERT(doors
[3].Route
== 0);