mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 03:44:38 +08:00
3.cc: Add copyright.
2009-07-06 Benjamin Kosnik <bkoz@redhat.com> * testsuite/21_strings/c_strings/wchar_t/3.cc: Add copyright. * testsuite/21_strings/c_strings/char/3.cc: Same. From-SVN: r149300
This commit is contained in:
parent
62c99ce475
commit
8207d787b5
@ -1,3 +1,8 @@
|
||||
2009-07-06 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* testsuite/21_strings/c_strings/wchar_t/3.cc: Add copyright.
|
||||
* testsuite/21_strings/c_strings/char/3.cc: Same.
|
||||
|
||||
2009-07-06 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* libsupc++/vmi_class_type_info.cc (__do_dyncast): Use src2dst hint
|
||||
@ -5,8 +10,7 @@
|
||||
|
||||
2009-07-05 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
*
|
||||
testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stod.cc,
|
||||
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stod.cc,
|
||||
testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stof.cc,
|
||||
testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoi.cc,
|
||||
testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stol.cc,
|
||||
@ -14,8 +18,8 @@
|
||||
testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoll.cc,
|
||||
testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoul.cc,
|
||||
testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoull.cc,
|
||||
testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring.cc,
|
||||
testsuite/ext/vstring/element_access/char/front_back.cc,
|
||||
testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
|
||||
to_wstring.cc, testsuite/ext/vstring/element_access/char/front_back.cc,
|
||||
testsuite/ext/vstring/element_access/wchar_t/front_back.cc,
|
||||
testsuite/ext/vstring/init-list.cc,
|
||||
testsuite/ext/vstring/moveable.cc,
|
||||
|
@ -1,6 +1,23 @@
|
||||
// { dg-do compile { target correct_iso_cpp_string_wchar_protos } }
|
||||
// { dg-options "-O2" }
|
||||
|
||||
// Copyright (C) 2009 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 3, 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 COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
const char *cc1, *cc2;
|
||||
|
@ -1,6 +1,23 @@
|
||||
// { dg-do compile { target correct_iso_cpp_string_wchar_protos } }
|
||||
// { dg-options "-O2" }
|
||||
|
||||
// Copyright (C) 2009 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 3, 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 COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
#include <cwchar>
|
||||
|
||||
const wchar_t *cw1, *cw2;
|
||||
@ -23,8 +40,8 @@ test01 ()
|
||||
|
||||
w1 = wmemchr (cw2, L'/', 3); // { dg-error "invalid conversion" }
|
||||
w1 = wcschr (cw2, L'/'); // { dg-error "invalid conversion" }
|
||||
w1 = wcspbrk (cw2, L"abc"); // { dg-error "invalid conversion" }
|
||||
w1 = wcsrchr (cw2, L'c'); // { dg-error "invalid conversion" }
|
||||
w1 = wcspbrk (cw2, L"abc"); // { dg-error "invalid conversion" }
|
||||
w1 = wcsstr (cw2, L"abc"); // { dg-error "invalid conversion" }
|
||||
|
||||
cw1 = wmemchr (cw2, L'/', 3);
|
||||
|
Loading…
Reference in New Issue
Block a user