1 /* 2 * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 * This file is licensed under the GPL license. For the full content 5 * of this license, see the COPYING file at the top level of this 6 * source tree. 7 8 * Test that tm structure is declared. 9 */ 10 #include <time.h> 11 12 struct tm this_type_should_exist, t; 13 14 int dummyfcn(void) 15 { 16 int week, year, dst; 17 18 t.tm_sec = 0; 19 t.tm_min = 10; 20 t.tm_hour = 17; 21 t.tm_mday = 1; 22 t.tm_mon = 11; 23 t.tm_year = 102; 24 week = t.tm_wday; 25 year = t.tm_yday; 26 dst = t.tm_isdst; 27 28 return 0; 29 } 30