diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/bitfld2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/bitfld2.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/bitfld2.C b/gcc/testsuite/g++.old-deja/g++.other/bitfld2.C new file mode 100644 index 000000000..62a971363 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/bitfld2.C @@ -0,0 +1,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 +}; |