1 /* 2 * This file and its contents are supplied under the terms of the 3 * Common Development and Distribution License ("CDDL"), version 1.0. 4 * You may only use this file in accordance with the terms of version 5 * 1.0 of the CDDL. 6 * 7 * A full copy of the text of the CDDL should have accompanied this 8 * source. A copy of the CDDL is also available via the Internet at 9 * http://www.illumos.org/license/CDDL. 10 */ 11 12 /* 13 * Copyright 2013 David Hoeppner. All rights reserved. 14 */ 15 16 #include <locale.h> 17 #include <stdlib.h> 18 19 static void 20 newlocale_test(void) 21 { 22 locale_t new_loc = NULL; 23 24 new_loc = newlocale(LC_CTYPE_MASK, "loc1", (locale_t)NULL); 25 if (new_loc == (locale_t)NULL) 26 return; 27 } 28 29 static void 30 run_tests(void) 31 { 32 newlocale_test(); 33 } 34 35 int 36 main(int argc, char * const argv[]) 37 { 38 39 run_tests(); 40 41 exit(0); 42 }