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

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);
}