Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/20081117-1.c

raw
1 /* { dg-require-effective-target int32plus } */
2 extern void abort (void);
3
4 struct s
5 {
6 unsigned long long a:16;
7 unsigned long long b:32;
8 unsigned long long c:16;
9 };
10
11 __attribute__ ((noinline)) unsigned
12 f (struct s s, unsigned i)
13 {
14 return s.b == i;
15 }
16
17 struct s s = { 1, 0x87654321u, 2};
18
19 int
20 main ()
21 {
22 if (!f (s, 0x87654321u))
23 abort ();
24 return 0;
25 }