aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr115646.c
blob: 7938a309513f12d3e429b860d325f8426ca41dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-require-effective-target int32plus } */

extern double pow(double x, double y);

struct S {
    unsigned int a : 3, b : 8, c : 21;
};

void foo (struct S *p)
{
  pow (p->c, 42);
}