# HG changeset patch # User Bruno Haible # Date 1320620087 -3600 # Node ID ad562dcd34c28035efd538651ca484d96952ccdf # Parent 6f48f579b66dd75e2c5dcfa19c2aa2a3aa997158 stdalign tests: Skip the test when compiled by Sun C. * tests/test-stdalign.c (main): Skip the test on Sun C. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-11-06 Bruno Haible + + stdalign tests: Skip the test when compiled by Sun C. + * tests/test-stdalign.c (main): Skip the test on Sun C. + 2011-11-06 Bruno Haible ansi-c++-opt: Complete the 2011-06-05 change. diff --git a/tests/test-stdalign.c b/tests/test-stdalign.c --- a/tests/test-stdalign.c +++ b/tests/test-stdalign.c @@ -80,6 +80,11 @@ int main () { +#if defined __SUNPRO_C + /* Avoid a test failure due to Sun Studio Developer Bug Report #2125432. */ + fputs ("Skipping test: known Sun C compiler bug\n", stderr); + return 77; +#else CHECK_ALIGNED (static_char_alignas); CHECK_ALIGNED (static_char_Alignas); CHECK_ALIGNED (static_short_alignas); @@ -88,10 +93,10 @@ CHECK_ALIGNED (static_int_Alignas); CHECK_ALIGNED (static_long_alignas); CHECK_ALIGNED (static_long_Alignas); -#ifdef INT64_MAX +# ifdef INT64_MAX CHECK_ALIGNED (static_int64_t_alignas); CHECK_ALIGNED (static_int64_t_Alignas); -#endif +# endif CHECK_ALIGNED (static_float_alignas); CHECK_ALIGNED (static_float_Alignas); CHECK_ALIGNED (static_double_alignas); @@ -107,4 +112,5 @@ CHECK_ALIGNED (static_struct4_alignas); CHECK_ALIGNED (static_struct4_Alignas); return 0; +#endif }