projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests for module 'dup'.
[gnulib.git]
/
tests
/
test-time.c
diff --git
a/tests/test-time.c
b/tests/test-time.c
index
9238ac4
..
df4710d
100644
(file)
--- a/
tests/test-time.c
+++ b/
tests/test-time.c
@@
-1,5
+1,5
@@
/* Test of <time.h> substitute.
/* Test of <time.h> substitute.
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007
, 2009-2011
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-20,10
+20,18
@@
#include <time.h>
#include <time.h>
-struct timespec a;
+#include "verify.h"
+
+/* Check that the types are all defined. */
+struct timespec t1;
+pid_t t2;
+
+/* Check that NULL can be passed through varargs as a pointer type,
+ per POSIX 2008. */
+verify (sizeof NULL == sizeof (void *));
int
int
-main ()
+main (
void
)
{
return 0;
}
{
return 0;
}