aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/cxxbitfields-6.c
blob: bdd62941b4db0aa91b8b640bd8be5d968108dfe6 (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 --param allow-store-data-races=0" } */

struct S
{
  int i:8;
};

void bar (struct S, int);

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