summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/bitfld2.C
blob: 62a971363fb5196ec2c8e440730c8ecf06184ea6 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do assemble  }
// { dg-options "-funsigned-bitfields" }
// Origin: Mark Mitchell <mark@codesourcery.com>

typedef int i[4];

struct S {
  i j:12; // { dg-error "" } array type as bitfield
};