struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-3401.c
blob81d62013cf6348cbdfc3de713da50e3d8100048c
1 /* bug-3401.c
2 Compiler crash in the frontend.
3 */
5 #include <testfwk.h>
7 #pragma disable_warning 84
8 #pragma disable_warning 85
10 #include <stdint.h>
11 #define DAP_TRANSFER_RnW (1U << 1)
13 static uint8_t DAP_TransferBlock(const uint8_t *req, uint8_t *res)
15 uint8_t num;
17 num |= (4U + (((uint8_t)(*(req + 1)) | (uint8_t)(*(req + 2) << 8)) * 4)) << 16;
19 return (num);
22 void testBug(void)