From a803bd9e737d6be3059a34b52250d6e09983865d Mon Sep 17 00:00:00 2001 From: zehata Date: Fri, 7 Dec 2018 00:49:32 +0800 Subject: Added POSIX Compliance Test for (GCI 2018) --- testsuites/psxtests/psxhdrs/ctype/toupper_l.c | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 testsuites/psxtests/psxhdrs/ctype/toupper_l.c (limited to 'testsuites/psxtests/psxhdrs/ctype/toupper_l.c') diff --git a/testsuites/psxtests/psxhdrs/ctype/toupper_l.c b/testsuites/psxtests/psxhdrs/ctype/toupper_l.c new file mode 100644 index 0000000000..a290a4c9e0 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/ctype/toupper_l.c @@ -0,0 +1,38 @@ +/** + * @file + * @brief toupper_l() API Conformance Test + */ + +/* + * COPYRIGHT (c) 2018. + * Zenon (zehata). + * + * 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) +{ + int lower; + locale_t locale; + + locale = (locale_t)0; + lower = 0; + return (toupper_l(lower, locale)); +} -- cgit v1.2.3