comparison test/sign/sign.c @ 410:7608e34098b0

- cleanups, simplifications, some api clarification, ... - test cases consistency: * return status code depending on test results (for actual conformance tests, not stuff that is not an example or hack to check something, ..) * platform init helper added for some
author Tassilo Philipp
date Tue, 05 Oct 2021 21:53:04 +0200
parents f5577f6bf97a
children e2899b4ff713
comparison
equal deleted inserted replaced
409:15698dc0cba3 410:7608e34098b0
4 Library: test 4 Library: test
5 File: test/sign/sign.c 5 File: test/sign/sign.c
6 Description: 6 Description:
7 License: 7 License:
8 8
9 Copyright (c) 2011-2018 Daniel Adler <dadler@uni-goettingen.de>, 9 Copyright (c) 2011-2021 Daniel Adler <dadler@uni-goettingen.de>,
10 Tassilo Philipp <tphilipp@potion-studios.com> 10 Tassilo Philipp <tphilipp@potion-studios.com>
11 11
12 Permission to use, copy, modify, and distribute this software for any 12 Permission to use, copy, modify, and distribute this software for any
13 purpose with or without fee is hereby granted, provided that the above 13 purpose with or without fee is hereby granted, provided that the above
14 copyright notice and this permission notice appear in all copies. 14 copyright notice and this permission notice appear in all copies.
23 23
24 */ 24 */
25 25
26 26
27 #include "dyncall.h" 27 #include "dyncall.h"
28 #include "../common/platformInit.h"
29 28
30 // This program demonstrates the need for 'unsigned' integers and the 29 // This program demonstrates the need for 'unsigned' integers and the
31 // ability to implement zero/sign extensions for small integers. 30 // ability to implement zero/sign extensions for small integers.
32 // This test program indicates failure on powerpc 32-bit with 31 // This test program indicates failure on powerpc 32-bit with
33 // compiler optimizations enabled (e.g. '-O2' compilation flags). 32 // compiler optimizations enabled (e.g. '-O2' compilation flags).