>From f33c48694d86ebd787e68aa89b65d2f24140b760 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 May 2017 21:50:57 +0200 Subject: [PATCH 02/16] 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. --- ChangeLog | 8 ++++++++ modules/inttypes-c++-tests | 18 ++++++++++++++++++ tests/test-inttypes-c++.cc | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 modules/inttypes-c++-tests create mode 100644 tests/test-inttypes-c++.cc diff --git a/ChangeLog b/ChangeLog index 4ef1fca..8f86738 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2017-05-05 Bruno Haible + 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 + dirent-c++-tests: Update. * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13. (rewinddir): Declare, missing since 2011-09-13. diff --git a/modules/inttypes-c++-tests b/modules/inttypes-c++-tests new file mode 100644 index 0000000..7f7e918 --- /dev/null +++ b/modules/inttypes-c++-tests @@ -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 diff --git a/tests/test-inttypes-c++.cc b/tests/test-inttypes-c++.cc new file mode 100644 index 0000000..d0ce8c2 --- /dev/null +++ b/tests/test-inttypes-c++.cc @@ -0,0 +1,39 @@ +/* Test of 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 . */ + +/* Written by Bruno Haible , 2017. */ + +#define GNULIB_NAMESPACE gnulib +#include + +#include + +#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 () +{ +} -- 2.7.4