tests/test-stdalign.c


Log

Author Commit Date CI Message
Jim Meyering 1602f0af 2012-01-01T10:04:58 maint: update all copyright year number ranges Run "make update-copyright".
Jim Meyering 811f969f 2011-11-24T22:04:32 test-stdalign.c: comment out long double tests * tests/test-stdalign.c: Don't try to reduce alignment of long double variables. That provokes errors like this from gcc-4.7.0 20111124: error: '_Alignas' specifiers cannot reduce alignment of \ 'static_longdouble_alignas'.
Bruno Haible efbbfb91 2011-11-06T23:54:47 stdalign tests: Skip the test when compiled by Sun C. * tests/test-stdalign.c (main): Skip the test on Sun C.
Paul Eggert 086fbef2 2011-11-01T08:22:55 * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8. mingw supports alignments only up to 8 (!). Reported by Bruno Haible in <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>. * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
Paul Eggert 4e647944 2011-10-31T22:37:30 stdalign: port better to MSVC and to Sun C 5.11 I think these problems were reported by Bruno Haible, in email that I've unfortunately misplaced. * doc/posix-headers/stdalign.texi (stdalign.h): Document more shortcomings of MSVC and of Sun C 5.11. * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis around __declspec arg. * modules/stdalign-tests (Files): Add tests/macros.h. * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed. Include macros.h, for ASSERT. (DECLARE_ALIGNED): Remove. (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely to catch bug), and to 1 if not (simplifies the rest of the code). (CHECK_STATIC): Always declare the alignment test vars; that's simpler. (CHECK_AUTO): Remove. (CHECK_ALIGNED): Check only the alignment of the static vars, since auto var alignment isn't supported by Sun C 5.11. (CHECK_TYPES): Remove. All uses replaced by inline code, so that ASSERT failures are easier to diagnose.
Paul Eggert 610ca128 2011-10-27T12:43:51 Adjust to Bruno's comments.
Paul Eggert f335f340 2011-10-16T16:58:23 stdalign-tests: new module * modules/stdalign-tests, tests/test-stdalign.c: New files.