summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr42879.c
blob: 9961a839fb8f827e30c3a104ea03c24f3b6dea8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-require-effective-target arm_thumb2_ok } */
/* { dg-options "-mthumb -Os" }  */
/* { dg-final { scan-assembler "lsls" } } */

struct A
{
  int v:1;
};

int bar();
int foo(struct A* p)
{
  if (p->v)
    return 1;
  return bar();
}