summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/bitfield11.C
blob: e78ea121d6159087ef35cff8acc67121e93cea81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do run } 
// { dg-options "-w -fabi-version=0" }

struct S {
  char c : 1024;
};

S s;

int main () {
  s.c = 1;
  if (*(char *)&s != 1)
    return 1;
}