]> Savannah Git Hosting - gnulib.git/commitdiff
stdalign tests: Skip the test when compiled by Sun C.
authorBruno Haible <bruno@clisp.org>
Sun, 6 Nov 2011 22:54:47 +0000 (23:54 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 6 Nov 2011 22:57:46 +0000 (23:57 +0100)
* tests/test-stdalign.c (main): Skip the test on Sun C.

ChangeLog
tests/test-stdalign.c

index e10966127bb0912784a1cae1318832ce341d41e4..cf27a759fc813d7536083717cf352acb46745c5a 100644 (file)
--- 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.
index 66a2040e5e4c2c53500065bc59c49a0f0e4aefe9..7090a26860e378826530f971f7b2209a6dd982e5 100644 (file)
@@ -80,6 +80,11 @@ CHECK_STATIC (struct4);
 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 @@ main ()
   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 @@ main ()
   CHECK_ALIGNED (static_struct4_alignas);
   CHECK_ALIGNED (static_struct4_Alignas);
   return 0;
+#endif
 }