You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2009/05/05 16:14:17 UTC

svn commit: r771735 - /stdcxx/branches/4.2.x/tests/regress/21.string.find.stdcxx-1035.cpp

Author: faridz
Date: Tue May  5 14:14:16 2009
New Revision: 771735

URL: http://svn.apache.org/viewvc?rev=771735&view=rev
Log:
2009-05-05  Farid Zaripov  <fa...@apache.org>

	* tests/regress/21.string.find.stdcxx-1035.cpp: New regression
	test for STDCXX-1035.

Added:
    stdcxx/branches/4.2.x/tests/regress/21.string.find.stdcxx-1035.cpp   (with props)

Added: stdcxx/branches/4.2.x/tests/regress/21.string.find.stdcxx-1035.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/regress/21.string.find.stdcxx-1035.cpp?rev=771735&view=auto
==============================================================================
--- stdcxx/branches/4.2.x/tests/regress/21.string.find.stdcxx-1035.cpp (added)
+++ stdcxx/branches/4.2.x/tests/regress/21.string.find.stdcxx-1035.cpp Tue May  5 14:14:16 2009
@@ -0,0 +1,42 @@
+/************************************************************************
+*
+* 21.string.find.stdcxx-1035.cpp - regression test for STDCXX-1035
+*
+* https://issues.apache.org/jira/browse/STDCXX-1035
+*
+* $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 ()
+{
+    std::string s = ".google.com";
+    std::string s1 = "www.google.google.com";
+
+    std::string::size_type pos = s1.find (s);
+
+    assert(10 == pos);
+
+    return 0;
+}

Propchange: stdcxx/branches/4.2.x/tests/regress/21.string.find.stdcxx-1035.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: stdcxx/branches/4.2.x/tests/regress/21.string.find.stdcxx-1035.cpp
------------------------------------------------------------------------------
    svn:keywords = Id