Return-Path: Delivered-To: apmail-stdcxx-commits-archive@www.apache.org Received: (qmail 77824 invoked from network); 10 Mar 2008 06:04:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2008 06:04:05 -0000 Received: (qmail 95017 invoked by uid 500); 10 Mar 2008 06:04:02 -0000 Delivered-To: apmail-stdcxx-commits-archive@stdcxx.apache.org Received: (qmail 94997 invoked by uid 500); 10 Mar 2008 06:04:02 -0000 Mailing-List: contact commits-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list commits@stdcxx.apache.org Received: (qmail 94986 invoked by uid 99); 10 Mar 2008 06:04:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Mar 2008 23:04:02 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 06:03:22 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B4D001A9832; Sun, 9 Mar 2008 23:03:42 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r635444 - /stdcxx/trunk/tests/regress/21.string.assign.stdcxx-629.cpp Date: Mon, 10 Mar 2008 06:03:42 -0000 To: commits@stdcxx.apache.org From: faridz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080310060342.B4D001A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: faridz Date: Sun Mar 9 23:03:34 2008 New Revision: 635444 URL: http://svn.apache.org/viewvc?rev=635444&view=rev Log: 2008-03-10 Farid Zaripov * tests/regress/21.string.assign.stdcxx-629.cpp: Regression test for STDCXX-629 issue. Added: stdcxx/trunk/tests/regress/21.string.assign.stdcxx-629.cpp (with props) Added: stdcxx/trunk/tests/regress/21.string.assign.stdcxx-629.cpp URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/regress/21.string.assign.stdcxx-629.cpp?rev=635444&view=auto ============================================================================== --- stdcxx/trunk/tests/regress/21.string.assign.stdcxx-629.cpp (added) +++ stdcxx/trunk/tests/regress/21.string.assign.stdcxx-629.cpp Sun Mar 9 23:03:34 2008 @@ -0,0 +1,40 @@ +/************************************************************************ +* +* 21.string.assign.stdcxx-629.cpp - regression test for STDCXX-629 +* +* https://issues.apache.org/jira/browse/STDCXX-629 +* +* $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 +#include + +int main () +{ + std::string s ("abc"); + + s.assign (s.rbegin () + 1, s.rend ()); + assert ("ba" == s); + + return 0; +} Propchange: stdcxx/trunk/tests/regress/21.string.assign.stdcxx-629.cpp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: stdcxx/trunk/tests/regress/21.string.assign.stdcxx-629.cpp ------------------------------------------------------------------------------ svn:keywords = Id