summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/bitfield11.C
blob: ddf48cb373a27f6c4f855b289253611503ebc71a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/37819
// { dg-do compile }

struct A
{
  unsigned int a : 1;
};

void
foo (A *x, A *y)
{
  x->a = y ? y->a : true;
}