summaryrefslogtreecommitdiff
path: root/lib/gl/tests/test-stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gl/tests/test-stdio.c')
-rw-r--r--lib/gl/tests/test-stdio.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/gl/tests/test-stdio.c b/lib/gl/tests/test-stdio.c
index a5efa320ba..dcfe38dd51 100644
--- a/lib/gl/tests/test-stdio.c
+++ b/lib/gl/tests/test-stdio.c
@@ -1,5 +1,5 @@
/* Test of <stdio.h> substitute.
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009 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
@@ -20,9 +20,15 @@
#include <stdio.h>
+#include "verify.h"
+
/* Check that the various SEEK_* macros are defined. */
int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET };
+/* Check that NULL can be passed through varargs as a pointer type,
+ per POSIX 2008. */
+verify (sizeof NULL == sizeof (void *));
+
int
main ()
{