aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cxxbitfields-6.c
blob: 273117c0589dc65e243c07499ad114b5e884349f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR middle-end/50141 */
/* { dg-do compile } */
/* { dg-options "-O2 -fno-allow-store-data-races" } */

struct S
{
  int i:8;
};

void bar (struct S, int);

void
foo (struct S s, int i)
{
  s.i = i;
  bar (s, i);
}