Debian Codegraph @

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

raw
1 void abort (void);
2 void exit (int);
3
4 struct s {
5 unsigned long long a:8, b:32;
6 };
7
8 struct s
9 f(struct s x)
10 {
11 x.b = 0xcdef1234;
12 return x;
13 }
14
15 int
16 main(void)
17 {
18 static struct s i;
19 i.a = 12;
20 i = f(i);
21 if (i.a != 12 || i.b != 0xcdef1234)
22 abort();
23 exit(0);
24 }