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 'fmodl-ieee'.
[gnulib.git]
/
tests
/
test-wchar.c
diff --git
a/tests/test-wchar.c
b/tests/test-wchar.c
index
19da7d9
..
0d72005
100644
(file)
--- a/
tests/test-wchar.c
+++ b/
tests/test-wchar.c
@@
-1,5
+1,5
@@
/* Test of <wchar.h> substitute.
/* Test of <wchar.h> substitute.
- Copyright (C) 2007-20
08
Free Software Foundation, Inc.
+ Copyright (C) 2007-20
12
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,12
+20,18
@@
#include <wchar.h>
#include <wchar.h>
+#include "verify.h"
+
/* Check that the types wchar_t and wint_t are defined. */
wchar_t a = 'c';
wint_t b = 'x';
/* Check that the types wchar_t and wint_t are defined. */
wchar_t a = 'c';
wint_t b = 'x';
+/* 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;
}