From a5c0886a6d3161ce6a8fd7b4e2cc402336670a4d Mon Sep 17 00:00:00 2001 From: Jacob Shin Date: Sat, 8 Dec 2018 13:49:20 -0500 Subject: psxhdrs: Add POSIX API Signature Compliance Tests for stdlib.h (GCI 2018) --- testsuites/psxtests/psxhdrs/stdlib/exit.c | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 testsuites/psxtests/psxhdrs/stdlib/exit.c (limited to 'testsuites/psxtests/psxhdrs/stdlib/exit.c') diff --git a/testsuites/psxtests/psxhdrs/stdlib/exit.c b/testsuites/psxtests/psxhdrs/stdlib/exit.c new file mode 100755 index 0000000000..af16b9415b --- /dev/null +++ b/testsuites/psxtests/psxhdrs/stdlib/exit.c @@ -0,0 +1,33 @@ +/** + * @file + * @brief exit() API Conformance Test + */ + +/* + * COPYRIGHT (c) 2018. + * Jacob Shin + * + * Permission to use, copy, modify, and/or distribute this software + * for any purpose with or without fee is hereby granted. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL + * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR + * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES + * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, + * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include + +int test( void ); + +int test( void ) +{ + exit(1); +} \ No newline at end of file -- cgit v1.2.3