From patchwork Sat Jul 30 20:32:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 107516 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id E3B4CB6F72 for ; Sun, 31 Jul 2011 06:32:50 +1000 (EST) Received: (qmail 28757 invoked by alias); 30 Jul 2011 20:32:48 -0000 Received: (qmail 28747 invoked by uid 22791); 30 Jul 2011 20:32:47 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from rcsinet15.oracle.com (HELO rcsinet15.oracle.com) (148.87.113.117) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 30 Jul 2011 20:32:31 +0000 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p6UKWSN9014014 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 30 Jul 2011 20:32:30 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p6UKWRdb005322 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 30 Jul 2011 20:32:28 GMT Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p6UKWLdm014738; Sat, 30 Jul 2011 15:32:21 -0500 Received: from [192.168.1.4] (/79.47.193.152) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 30 Jul 2011 13:32:21 -0700 Message-ID: <4E346A4C.1070006@oracle.com> Date: Sat, 30 Jul 2011 22:32:12 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: Jason Merrill Subject: [C++ testsuite patch, committed as obvious] PR 49917 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, I'm committing as obvious a fix to this testcase, which is meant to test a runtime issue (c++/13865). Thanks, Paolo. ///////////////////// 2011-07-30 Paolo Carlini PR testsuite/49917 * g++.dg/init/for1.C: Fix. Index: g++.dg/init/for1.C =================================================================== --- g++.dg/init/for1.C (revision 176961) +++ g++.dg/init/for1.C (working copy) @@ -1,6 +1,8 @@ // PR c++/13865 // Bug: We were destroying 'a' before executing the loop. +// { dg-do run } + #include int i; @@ -13,7 +15,7 @@ class A ~A() { printf("A dtor\n"); - if (i != 1) + if (i != 2) r = 1; } };