Debian Codegraph @

gcc/testsuite/gcc.dg/debug/btf/btf-forward-1.c

raw
1 /* Test BTF generation of forwards.
2
3 Check that the KIND_FLAG (bit 31) of btt_info is set (1) for the forward to
4 union, and not set (0) for forward to struct. */
5
6 /* { dg-do compile } */
7 /* { dg-options "-O0 -gbtf -dA" } */
8
9 /* { dg-final { scan-assembler-times "\[\t \]0x87000000\[\t \]+\[^\n\]*btt_info" 1 } } */
10 /* { dg-final { scan-assembler-times "\[\t \]0x7000000\[\t \]+\[^\n\]*btt_info" 1 } } */
11
12 typedef struct _fwd_st
13 {
14 struct unk_struct_type *data[4];
15 } fwd_st_t;
16
17 fwd_st_t struct_container;
18
19 typedef struct _fwd_un
20 {
21 union unk_union_type *options[4];
22 } fwd_un_t;
23
24 fwd_un_t union_container;