aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr65556.c
blob: 8629a48fdceedf63eff26085d96c05362dfd025c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* PR c++/65556 */
/* { dg-do compile } */

struct S
{
  long l: 1;
  long l2: 21;
  unsigned long ul: 1;
  unsigned long ul2: 21;
} s;

void
fn ()
{
  switch (s.l)
    case 0:;
  switch (s.ul)
    case 0:;
  switch (s.l2)
    case 0:;
  switch (s.ul2)
    case 0:;
}