diff options
author | Bruno Haible <bruno@clisp.org> | 2010-03-13 16:20:41 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-03-13 16:20:41 +0100 |
commit | 14051499d596955d8c5e558f78826df4d8945ed1 (patch) | |
tree | c7e161b6578b72dd7bf6e4713bd1f8eb18755d34 /tests | |
parent | 4735b7faf6be8578cd8109efead5b781abd1439d (diff) | |
download | gnulib-14051499d596955d8c5e558f78826df4d8945ed1.tar.gz |
Test that gnulib does not break the standard C++ headers.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-locale-c++2.cc | 20 | ||||
-rw-r--r-- | tests/test-math-c++2.cc | 20 | ||||
-rw-r--r-- | tests/test-signal-c++2.cc | 20 | ||||
-rw-r--r-- | tests/test-stdio-c++2.cc | 20 | ||||
-rw-r--r-- | tests/test-stdlib-c++2.cc | 20 | ||||
-rw-r--r-- | tests/test-string-c++2.cc | 20 | ||||
-rw-r--r-- | tests/test-time-c++2.cc | 20 |
7 files changed, 140 insertions, 0 deletions
diff --git a/tests/test-locale-c++2.cc b/tests/test-locale-c++2.cc new file mode 100644 index 0000000000..6c8c57cf60 --- /dev/null +++ b/tests/test-locale-c++2.cc @@ -0,0 +1,20 @@ +/* Test of <locale.h> substitute in C++ mode. + Copyright (C) 2010 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/>. */ + +#define GNULIB_NAMESPACE gnulib +#include <config.h> + +#include <clocale> diff --git a/tests/test-math-c++2.cc b/tests/test-math-c++2.cc new file mode 100644 index 0000000000..efc192f14b --- /dev/null +++ b/tests/test-math-c++2.cc @@ -0,0 +1,20 @@ +/* Test of <math.h> substitute in C++ mode. + Copyright (C) 2010 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/>. */ + +#define GNULIB_NAMESPACE gnulib +#include <config.h> + +#include <cmath> diff --git a/tests/test-signal-c++2.cc b/tests/test-signal-c++2.cc new file mode 100644 index 0000000000..0ec80150f5 --- /dev/null +++ b/tests/test-signal-c++2.cc @@ -0,0 +1,20 @@ +/* Test of <signal.h> substitute in C++ mode. + Copyright (C) 2010 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/>. */ + +#define GNULIB_NAMESPACE gnulib +#include <config.h> + +#include <csignal> diff --git a/tests/test-stdio-c++2.cc b/tests/test-stdio-c++2.cc new file mode 100644 index 0000000000..a0f819e701 --- /dev/null +++ b/tests/test-stdio-c++2.cc @@ -0,0 +1,20 @@ +/* Test of <stdio.h> substitute in C++ mode. + Copyright (C) 2010 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/>. */ + +#define GNULIB_NAMESPACE gnulib +#include <config.h> + +#include <cstdio> diff --git a/tests/test-stdlib-c++2.cc b/tests/test-stdlib-c++2.cc new file mode 100644 index 0000000000..9967c1377c --- /dev/null +++ b/tests/test-stdlib-c++2.cc @@ -0,0 +1,20 @@ +/* Test of <stdlib.h> substitute in C++ mode. + Copyright (C) 2010 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/>. */ + +#define GNULIB_NAMESPACE gnulib +#include <config.h> + +#include <cstdlib> diff --git a/tests/test-string-c++2.cc b/tests/test-string-c++2.cc new file mode 100644 index 0000000000..aebb6c61b3 --- /dev/null +++ b/tests/test-string-c++2.cc @@ -0,0 +1,20 @@ +/* Test of <string.h> substitute in C++ mode. + Copyright (C) 2010 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/>. */ + +#define GNULIB_NAMESPACE gnulib +#include <config.h> + +#include <cstring> diff --git a/tests/test-time-c++2.cc b/tests/test-time-c++2.cc new file mode 100644 index 0000000000..d7b2bdd118 --- /dev/null +++ b/tests/test-time-c++2.cc @@ -0,0 +1,20 @@ +/* Test of <time.h> substitute in C++ mode. + Copyright (C) 2010 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/>. */ + +#define GNULIB_NAMESPACE gnulib +#include <config.h> + +#include <ctime> |