summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/bitfield11.C
blob: bab303ef36c5090296055c72f4b62d361d252cc7 (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;
};

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