diff options
author | Paolo Carlini <pcarlini@suse.de> | 2006-01-25 19:29:40 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2006-01-25 19:29:40 +0000 |
commit | bd2bb1ea59def32f67e51e844bb7fed3fbd8a121 (patch) | |
tree | 134fb590f211ecbb84e73d45be5eff5512a35ed3 /libstdc++-v3/testsuite | |
parent | 03b8fe495d716c004f5491eb2347537f115ab2d8 (diff) | |
download | gcc-bd2bb1ea59def32f67e51e844bb7fed3fbd8a121.zip gcc-bd2bb1ea59def32f67e51e844bb7fed3fbd8a121.tar.gz gcc-bd2bb1ea59def32f67e51e844bb7fed3fbd8a121.tar.bz2 |
cctype: New.
2006-01-25 Paolo Carlini <pcarlini@suse.de>
* include/tr1/cctype: New.
* include/Makefile.am: Add.
* testsuite/tr1/8_c_compatibility/cctype/functions.cc: New.
* include/Makefile.in: Regenerate.
* acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): New, check for C99
support to TR1, Chapter 8.
* configure.ac: Use it.
* include/tr1/complex: Adjust.
* config.h.in: Regenerate.
* configure: Likewise.
From-SVN: r110221
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r-- | libstdc++-v3/testsuite/tr1/8_c_compatibility/cctype/functions.cc | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cctype/functions.cc b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cctype/functions.cc new file mode 100644 index 0000000..9665a60 --- /dev/null +++ b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cctype/functions.cc @@ -0,0 +1,38 @@ +// 2006-01-25 Paolo Carlini <pcarlini@suse.de> +// +// Copyright (C) 2006 Free Software Foundation, Inc. +// +// This file is part of the GNU ISO C++ Library. This library 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 2, or (at your option) +// any later version. +// +// This library 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 library; see the file COPYING. If not, write to the Free +// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +// USA. + +// 8.4 Additions to header <cctype> + +#include <tr1/cctype> + +void test01(int r = 0) +{ +#if _GLIBCXX_USE_C99_CTYPE_TR1 + r = std::tr1::isblank(0); +#else + r = 0; +#endif +} + +int main() +{ + test01(); + return 0; +} |