Debian Codegraph @

gcc/testsuite/gcc.target/arm/cmse/bitfield-9.x

raw
1 typedef struct
2 {
3 char a:3;
4 } test_st3;
5
6 typedef struct
7 {
8 char a:3;
9 } test_st2;
10
11 typedef struct
12 {
13 test_st2 st2;
14 test_st3 st3;
15 } test_st;
16
17 typedef union
18 {
19 test_st st;
20 struct
21 {
22 unsigned int v1;
23 unsigned int v2;
24 unsigned int v3;
25 unsigned int v4;
26 }values;
27 } read_st;
28
29 typedef void __attribute__ ((cmse_nonsecure_call)) (*foo_ns) (test_st);
30
31 int
32 main (void)
33 {
34 read_st r;
35 foo_ns f;
36
37 f = (foo_ns) 0x200000;
38 r.values.v1 = 0xFFFFFFFF;
39
40 f (r.st);
41 return 0;
42 }