bitfield3.C: Make sure test runs for windows targets without activated ms-bitfields option.

* g++.dg/abi/bitfield3.C: Make sure test runs
        for windows targets without activated ms-bitfields option.

From-SVN: r182722
This commit is contained in:
Kai Tietz 2011-12-29 11:03:26 +01:00 committed by Kai Tietz
parent 08a2f72255
commit 81ed42d319
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2012-12-29 Kai Tietz <ktietz@redhat.com>
* g++.dg/abi/bitfield3.C: Make sure test runs
for windows targets without activated ms-bitfields option.
* g++.old-deja/g++.brendan/new3.C: Adjust test for mingw
targets to use static-version.
* g++.old-deja/g++.abi/cxa_vec.C: Likewise.

View File

@ -1,9 +1,12 @@
// Test for oversized bitfield alignment in structs on IA-32
// { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } }
// { dg-options "-O2" }
// Cygwin and mingw32 default to MASK_ALIGN_DOUBLE. Override to ensure
// Cygwin and mingw default to MASK_ALIGN_DOUBLE. Override to ensure
// 4-byte alignment.
// { dg-options "-mno-align-double" { target i?86-*-cygwin* i?86-*-mingw* } }
// { dg-additional-options "-mno-align-double" { target i?86-*-cygwin* i?86-*-mingw* } }
// As for mingw target the ms-bitfield switch is activated by default,
// make sure for this test that it is disabled.
// { dg-additional-options "-mno-ms-bitfields" { target i?86-*-mingw* } }
struct A
{