>From 308880d80924c1fd9fd2e9604a041d987c8eb8c6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 May 2017 23:16:31 +0200 Subject: [PATCH 13/16] utime-h-c++-tests: New module. * tests/test-utime-h-c++.cc: New file. (utime): Declare, missing since 2017-04-30. * modules/utime-h-c++-tests: New file. --- ChangeLog | 7 +++++++ modules/utime-h-c++-tests | 18 ++++++++++++++++++ tests/test-utime-h-c++.cc | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 modules/utime-h-c++-tests create mode 100644 tests/test-utime-h-c++.cc diff --git a/ChangeLog b/ChangeLog index 41bb58f..a5a10e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2017-05-05 Bruno Haible + utime-h-c++-tests: New module. + * tests/test-utime-h-c++.cc: New file. + (utime): Declare, missing since 2017-04-30. + * modules/utime-h-c++-tests: New file. + +2017-05-05 Bruno Haible + unistd-c++-tests: Update. * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03. (read): Declare, missing since 2011-04-15. diff --git a/modules/utime-h-c++-tests b/modules/utime-h-c++-tests new file mode 100644 index 0000000..0b7f9cf --- /dev/null +++ b/modules/utime-h-c++-tests @@ -0,0 +1,18 @@ +Files: +tests/test-utime-h-c++.cc +tests/signature.h + +Status: +c++-test + +Depends-on: +ansi-c++-opt + +configure.ac: + +Makefile.am: +if ANSICXX +TESTS += test-utime-h-c++ +check_PROGRAMS += test-utime-h-c++ +test_utime_h_c___SOURCES = test-utime-h-c++.cc +endif diff --git a/tests/test-utime-h-c++.cc b/tests/test-utime-h-c++.cc new file mode 100644 index 0000000..d09e2f2 --- /dev/null +++ b/tests/test-utime-h-c++.cc @@ -0,0 +1,36 @@ +/* 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_UTIME +SIGNATURE_CHECK (GNULIB_NAMESPACE::utime, int, + (const char *, const struct utimbuf *)); +#endif + + +int +main () +{ +} -- 2.7.4