Author: sebor Date: Mon Apr 21 20:54:21 2008 New Revision: 650374 URL: http://svn.apache.org/viewvc?rev=650374&view=rev Log: 2008-04-21 Martin Sebor <[EMAIL PROTECTED]>
* tests/regress/21.char.traits.find.stdcxx-541.cpp: Added a regression test for STDCXX-541. Added: stdcxx/trunk/tests/regress/21.char.traits.find.stdcxx-541.cpp (with props) Added: stdcxx/trunk/tests/regress/21.char.traits.find.stdcxx-541.cpp URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/regress/21.char.traits.find.stdcxx-541.cpp?rev=650374&view=auto ============================================================================== --- stdcxx/trunk/tests/regress/21.char.traits.find.stdcxx-541.cpp (added) +++ stdcxx/trunk/tests/regress/21.char.traits.find.stdcxx-541.cpp Mon Apr 21 20:54:21 2008 @@ -0,0 +1,39 @@ +/************************************************************************ + * + * 21.char.traits.find.stdcxx-541.cpp - regression test for STDCXX-541 + * + * http://issues.apache.org/jira/browse/STDCXX-541 + * + * $Id$ + * + *************************************************************************** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing + * permissions and limitations under the License. + * + **************************************************************************/ + +#include <cassert> +#include <string> + + +int main () +{ + assert (std::char_traits<char>::find ("a\201", 2, '\201')); + + return 0; +} + Propchange: stdcxx/trunk/tests/regress/21.char.traits.find.stdcxx-541.cpp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: stdcxx/trunk/tests/regress/21.char.traits.find.stdcxx-541.cpp ------------------------------------------------------------------------------ svn:keywords = Id