blob: 1deac90f256f71ac444ad5b2471c062c60a9a68c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* CTF generation for bitfields.
In this testcase, two slices are expected - one for enum and the other for
int. CTF slices are unnamed records. */
/* { dg-do compile ) */
/* { dg-options "-O0 -gctf -dA" } */
/* { dg-final { scan-assembler-times "\[\t \]0x2\[\t \]+\[^\n\]*cts_bits" 1 } } */
/* { dg-final { scan-assembler-times "\[\t \]0x3\[\t \]+\[^\n\]*cts_bits" 1 } } */
/* { dg-final { scan-assembler-times "\[\t \]0\[\t \]+\[^\n\]*ctt_name" 2 } } */
enum color
{
RED,
GREEN,
BLUE,
YELLOW,
ORANGE,
BLACK
};
struct quickcolor
{
enum color col:3;
int brushid:2;
int strokes;
};
struct quickcolor qc;
|