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.
* m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
does not support namespaces, set the variable to "no", not to ":".
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);
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);
CHECK_ALIGNED (static_struct4_alignas);
CHECK_ALIGNED (static_struct4_Alignas);
return 0;
+#endif
}