Mercurial > hg > octave-shane > gnulib-hg
annotate tests/test-string.c @ 17530:8981b79e1271
error: make the module depend on vfprintf-posix
* modules/error (Depends-on): Add vfprintf-posix, since error
calls vfprintf unconditionally, via error_tail.
author | Jim Meyering <meyering@fb.com> |
---|---|
date | Sat, 12 Oct 2013 19:28:40 -0700 |
parents | e542fd46ad6f |
children | 344018b6e5d7 |
rev | line source |
---|---|
8175 | 1 /* Test of <string.h> substitute. |
17249
e542fd46ad6f
maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents:
16201
diff
changeset
|
2 Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. |
8175 | 3 |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
8175
diff
changeset
|
4 This program is free software: you can redistribute it and/or modify |
8175 | 5 it under the terms of the GNU General Public License as published by |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
8175
diff
changeset
|
6 the Free Software Foundation; either version 3 of the License, or |
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
8175
diff
changeset
|
7 (at your option) any later version. |
8175 | 8 |
9 This program is distributed in the hope that it will be useful, | |
10 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 GNU General Public License for more details. | |
13 | |
14 You should have received a copy of the GNU General Public License | |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
8175
diff
changeset
|
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
8175 | 16 |
17 /* Written by Bruno Haible <bruno@clisp.org>, 2007. */ | |
18 | |
19 #include <config.h> | |
20 | |
21 #include <string.h> | |
22 | |
11658
8b1dcb465dff
tests: add test for bogus NULL definition
Eric Blake <ebb9@byu.net>
parents:
9309
diff
changeset
|
23 #include "verify.h" |
8b1dcb465dff
tests: add test for bogus NULL definition
Eric Blake <ebb9@byu.net>
parents:
9309
diff
changeset
|
24 |
8b1dcb465dff
tests: add test for bogus NULL definition
Eric Blake <ebb9@byu.net>
parents:
9309
diff
changeset
|
25 /* Check that NULL can be passed through varargs as a pointer type, |
8b1dcb465dff
tests: add test for bogus NULL definition
Eric Blake <ebb9@byu.net>
parents:
9309
diff
changeset
|
26 per POSIX 2008. */ |
11831
60a86ea77948
Revert "Avoid compilation error on NetBSD 5.0."
Eric Blake <ebb9@byu.net>
parents:
11806
diff
changeset
|
27 verify (sizeof NULL == sizeof (void *)); |
11658
8b1dcb465dff
tests: add test for bogus NULL definition
Eric Blake <ebb9@byu.net>
parents:
9309
diff
changeset
|
28 |
8175 | 29 int |
12197
e45d9bb2233e
tests: avoid several compiler warnings
Eric Blake <ebb9@byu.net>
parents:
11831
diff
changeset
|
30 main (void) |
8175 | 31 { |
32 return 0; | |
33 } |