aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr40204.c
blob: 149302a8303a061c6fd5ee606fff39d2a28d1d0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-require-effective-target int32plus } */
/* PR middle-end/40204 */

struct S
{
  unsigned int a : 4;
  unsigned int b : 28;
} s;
char c;

void
f (void)
{
  s.a = (c >> 4) & ~(1 << 4);
}