annotate gcc/testsuite/gcc.dg/pr33667.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O2" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 __extension__ typedef __SIZE_TYPE__ size_t;
kono
parents:
diff changeset
5 typedef unsigned char uint8_t;
kono
parents:
diff changeset
6 typedef unsigned short int uint16_t;
kono
parents:
diff changeset
7 typedef unsigned long long int uint64_t;
kono
parents:
diff changeset
8 struct magic {
kono
parents:
diff changeset
9 uint8_t mask_op;
kono
parents:
diff changeset
10 union {
kono
parents:
diff changeset
11 uint64_t _mask;
kono
parents:
diff changeset
12 } _u;
kono
parents:
diff changeset
13 union VALUETYPE {
kono
parents:
diff changeset
14 uint16_t h;
kono
parents:
diff changeset
15 } value;
kono
parents:
diff changeset
16 };
kono
parents:
diff changeset
17 void cvt_16(union VALUETYPE *p, const struct magic *m)
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 if (m->_u._mask)
kono
parents:
diff changeset
20 p->h %= (uint16_t) m->_u._mask;
kono
parents:
diff changeset
21 }