libstdc++: Add missing constexpr to __atomic_impl::__clear_padding
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 930208-1.c
blobee10400d4e7a8f942c0aac17da3add106b93d34c
1 /* { dg-additional-options "-fpermissive" } */
3 typedef union {
4 long l;
5 struct { char b3, b2, b1, b0; } c;
6 } T;
8 f (T u)
10 ++u.c.b0;
11 ++u.c.b3;
12 return (u.c.b1 != 2 || u.c.b2 != 2);
15 main ()
17 T u;
18 u.c.b1 = 2;
19 u.c.b2 = 2;
20 u.c.b0 = ~0;
21 u.c.b3 = ~0;
22 if (f (u))
23 abort();
24 exit (0);