Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.c-torture/compile/20191015-1.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 typedef unsigned uint32_t; | |
2 typedef unsigned char uint8_t; | |
3 typedef unsigned short uint16_t; | |
4 typedef struct { | |
5 uint32_t mbxOwner:1; | |
6 uint32_t mbxHc:1; | |
7 uint32_t mbxReserved:6; | |
8 uint32_t mbxCommand : 8; | |
9 uint32_t mbxStatus : 16; | |
10 } MAILBOX_t; | |
11 uint32_t f(void) { | |
12 uint32_t mbox; | |
13 mbox = 0; | |
14 ((MAILBOX_t *)&mbox)->mbxCommand = 0x24; | |
15 ((MAILBOX_t *)&mbox)->mbxOwner = 1; | |
16 return mbox; | |
17 } |