stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r771735 - /stdcxx/branches/4.2.x/tests/regress/21.string.find.stdcxx-1035.cpp
Date Tue, 05 May 2009 14:14:17 GMT
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  <faridz@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



Mime
View raw message