1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-09-01 02:34:55 +00:00

inttypes-c++-tests: New module.

* tests/test-inttypes-c++.cc: New file.
(strtoimax): Declare, missing since 2012-01-05.
(strtoumax): Declare, missing since 2012-01-05.
* modules/inttypes-c++-tests: New file.
This commit is contained in:
Bruno Haible
2017-05-05 21:50:57 +02:00
parent 89b335be47
commit f33c48694d
3 changed files with 65 additions and 0 deletions
+8
View File
@@ -1,3 +1,11 @@
2017-05-05 Bruno Haible <bruno@clisp.org>
inttypes-c++-tests: New module.
* tests/test-inttypes-c++.cc: New file.
(strtoimax): Declare, missing since 2012-01-05.
(strtoumax): Declare, missing since 2012-01-05.
* modules/inttypes-c++-tests: New file.
2017-05-05 Bruno Haible <bruno@clisp.org>
dirent-c++-tests: Update.
+18
View File
@@ -0,0 +1,18 @@
Files:
tests/test-inttypes-c++.cc
tests/signature.h
Status:
c++-test
Depends-on:
ansi-c++-opt
configure.ac:
Makefile.am:
if ANSICXX
TESTS += test-inttypes-c++
check_PROGRAMS += test-inttypes-c++
test_inttypes_c___SOURCES = test-inttypes-c++.cc
endif
+39
View File
@@ -0,0 +1,39 @@
/* Test of <inttypes.h> substitute in C++ mode.
Copyright (C) 2010-2017 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
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* Written by Bruno Haible <bruno@clisp.org>, 2017. */
#define GNULIB_NAMESPACE gnulib
#include <config.h>
#include <inttypes.h>
#include "signature.h"
#if GNULIB_TEST_STRTOIMAX
SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoimax, intmax_t, (const char *, char **, int));
#endif
#if GNULIB_TEST_STRTOUMAX
SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoumax, uintmax_t, (const char *, char **, int));
#endif
int
main ()
{
}