summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr42172-1.c
blob: 207f6001fb7d4c14fca2634dedd7a90d8e72f7ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-options "-O2" }  */

struct A {
  unsigned int f1 : 3;
  unsigned int f2 : 3;
  unsigned int f3 : 1;
  unsigned int f4 : 1;

};

void init_A (struct A *this)
{
  this->f1 = 0;
  this->f2 = 1;
  this->f3 = 0;
  this->f4 = 0;
}

/* { dg-final { scan-assembler-times "ldr" 1 } } */