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

#include <limits>

union U {
  int i: 4096;
};

int main () {
  if (sizeof (U) * std::numeric_limits<unsigned char>::digits != 4096)
    return 1;
}