summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20031211-1.c
blob: 2361509a096acae2027d74ec4dda6072da5216fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
struct a { unsigned int bitfield : 1; };

unsigned int x;

main()
{
  struct a a = {0};
  x = 0xbeef;
  a.bitfield |= x;
  if (a.bitfield != 1)
    abort ();
  exit (0);
}