Debian Codegraph @

gcc/testsuite/gcc.dg/debug/ctf/ctf-bitfields-5.c

raw
1 /* Bitfield where the bit offset is > 255 is not allowed in CTF.
2
3 PR debug/112878.
4 This testcase is to ensure graceful handling. No slices are expected. */
5
6 /* { dg-do compile { target bitint } } */
7 /* { dg-options "-O0 -gctf -dA" } */
8
9 /* No slices are expected, but a struct with one member is expected.
10 CTF_K_UNKNOWN is also expected. */
11 /* { dg-final { scan-assembler-times "cts_type" 0 } } */
12 /* { dg-final { scan-assembler-times "\[\t \]0x1a000001\[\t \]+\[^\n\]*ctt_info" 1 } } */
13 /* { dg-final { scan-assembler-times "ascii \"unknown.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
14
15 struct {
16 _BitInt(282) a : 280;
17 } b;