diff options
Diffstat (limited to 'testsuites/libtests/POSIX/gettimeofday.c')
-rw-r--r-- | testsuites/libtests/POSIX/gettimeofday.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuites/libtests/POSIX/gettimeofday.c b/testsuites/libtests/POSIX/gettimeofday.c new file mode 100644 index 0000000000..a5ccd3d1d3 --- /dev/null +++ b/testsuites/libtests/POSIX/gettimeofday.c @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2011 by + * Ralf Corsépius, Ulm, Germany. All rights reserved. + * + * Permission to use, copy, modify, and distribute this software + * is freely granted, provided that this notice is preserved. + */ + +#include <sys/time.h> + +int +main (void) +{ + struct timeval tv; + struct timezone tz; + + return gettimeofday(&tv, &tz); +} |