bitfield3.C: Make sure test runs for windows targets without activated ms-bitfields...
authorKai Tietz <ktietz@redhat.com>
Thu, 29 Dec 2011 10:03:26 +0000 (11:03 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Thu, 29 Dec 2011 10:03:26 +0000 (11:03 +0100)
        * g++.dg/abi/bitfield3.C: Make sure test runs
        for windows targets without activated ms-bitfields option.

From-SVN: r182722

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/bitfield3.C

index 4c2ee8a9420f43f118743991dc2d5137f3562b85..fb3daff3f19d3869427cf47c986cca367d93d8dd 100644 (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.
index 632bc5ca2f9c9887e751d369bc9e9749231aa343..6908ab6e7be4125c69b046a2b220d67a098addff 100644 (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
 {