Mercurial > hg > octave-lyh > gnulib-hg
changeset 16051:ad562dcd34c2
stdalign tests: Skip the test when compiled by Sun C.
* tests/test-stdalign.c (main): Skip the test on Sun C.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 06 Nov 2011 23:54:47 +0100 |
parents | 6f48f579b66d |
children | 3e022c4e0316 |
files | ChangeLog tests/test-stdalign.c |
diffstat | 2 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-11-06 Bruno Haible <bruno@clisp.org> + + 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 <bruno@clisp.org> ansi-c++-opt: Complete the 2011-06-05 change.
--- 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 }