aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/ctf/ctf-bitfields-3.c
blob: 8fbcf122f80f3417d585aa9e5b375b3dcd8825da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* The bool bitfield type.  */

/* { dg-do compile )  */
/* { dg-options "-O0 -gctf -dA" } */

/* { dg-final { scan-assembler-times "\[\t \]0x2\[\t \]+\[^\n\]*cts_type" 2 } } */
/* { dg-final { scan-assembler-times "\[\t \]0x1\[\t \]+\[^\n\]*cts_bits" 2 } } */

/* { dg-final { scan-assembler-times "ascii \"_Bool.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */

#include <stdbool.h>

struct open_file {
  bool mmapped:1;
  bool released:1;
} of;