summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/bitfield2.C
blob: cd9a837dcab04e046ec39bfd0b92ce5daf3d9405 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/28052
// { dg-do compile }

struct A
{
  double d : 2;  // { dg-error "non-integral" }
  A() {}
  ~A() {}
};