annotate gcc/testsuite/gcc.c-torture/compile/20020910-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* The bit-field below would have a problem if __INT_MAX__ is too
kono
parents:
diff changeset
2 small. */
kono
parents:
diff changeset
3 #if __INT_MAX__ < 2147483647
kono
parents:
diff changeset
4 int a;
kono
parents:
diff changeset
5 #else
kono
parents:
diff changeset
6 unsigned int x0 = 0;
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 typedef struct {
kono
parents:
diff changeset
9 unsigned int field1 : 20;
kono
parents:
diff changeset
10 unsigned int field2 : 12;
kono
parents:
diff changeset
11 } XX;
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 static XX yy;
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 static void foo (void)
kono
parents:
diff changeset
16 {
kono
parents:
diff changeset
17 yy.field1 = (unsigned int ) (&x0);
kono
parents:
diff changeset
18 }
kono
parents:
diff changeset
19 #endif