2008-01-25 Douglas Gregor <doug.gregor@gmail.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr33667.c
blobd3c039b51dfc2d128d517d700df364b0190ae7d5
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 typedef unsigned int size_t;
5 typedef unsigned char uint8_t;
6 typedef unsigned short int uint16_t;
7 typedef unsigned long long int uint64_t;
8 struct magic {
9 uint8_t mask_op;
10 union {
11 uint64_t _mask;
12 } _u;
13 union VALUETYPE {
14 uint16_t h;
15 } value;
17 void cvt_16(union VALUETYPE *p, const struct magic *m)
19 if (m->_u._mask)
20 p->h %= (uint16_t) m->_u._mask;