[Darwin,testsuite] Fix PR27221.

Message ID CBB5D5AF-ABB1-4508-80B3-A1A6AE4DD834@sandoe.co.uk
State New
Headers show
Series
  • [Darwin,testsuite] Fix PR27221.
Related show

Commit Message

Iain Sandoe May 22, 2019, 7:57 a.m.
An old oneā€¦

This test can never pass on 32b Darwin (or AIX) because the ABI demands a
different result to that being tested.  So XFAIL it.

Tested on powerpc-darwin9, powerpc-ibm-aix
Applied to mainline
Iain

gcc/testsuite/

2019-05-22  Iain Sandoe  <iain@sandoe.co.uk>

       PR testsuite/27221
       * g++.dg/ext/alignof2.C: XFAIL for 32bit Darwin.

Patch

diff --git a/gcc/testsuite/g++.dg/ext/alignof2.C b/gcc/testsuite/g++.dg/ext/alignof2.C
index 2217590..bd56cf6 100644
--- a/gcc/testsuite/g++.dg/ext/alignof2.C
+++ b/gcc/testsuite/g++.dg/ext/alignof2.C
@@ -3,7 +3,7 @@ 
 // wrong for some fields.
 
 // { dg-do run }
-// { dg-xfail-run-if "AIX ABI increases struct alignment for first member double" { powerpc-ibm-aix* } }
+// { dg-xfail-run-if "AIX/Darwin ABI increases struct alignment for first member double" { powerpc-ibm-aix* || { ilp32 && powerpc-*-darwin* } } }
 
 extern "C" void abort();