Debian Codegraph @

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

raw
1 /* { dg-additional-options "-std=gnu17" } */
2 /* { dg-require-effective-target untyped_assembly } */
3 extern void abort (void);
4
5 struct type
6 {
7 int *a;
8
9 int b:16;
10 unsigned int p:9;
11 } t;
12
13 unsigned int
14 foo ()
15 {
16 return t.p;
17 }
18
19 int
20 main (void)
21 {
22 t.p = 8;
23 if (foo (t) != 8)
24 abort ();
25 return 0;
26 }