summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/bitfield1.C
blob: 896490fbafc64093d69d67fa7f0d842cc42b4bc5 (plain)
1
2
3
4
5
6
7
8
9
// { dg-options "-w" }

union u1 {
  char m1 : 16;
} x;

int main () {
  x.m1 = 256;
}