From patchwork Fri Apr 18 05:28:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Ye X-Patchwork-Id: 28613 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2341A2188F for ; Fri, 18 Apr 2014 05:29:05 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id i8sf4621727qcq.0 for ; Thu, 17 Apr 2014 22:29:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mailing-list:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:sender :delivered-to:from:to:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:content-type :content-transfer-encoding; bh=EvIcalDRABHl863+t5w3dJy2IGsJr4SiXfZQXtUROGQ=; b=IOffilMl8BxWp9t8AYi+63gAZZxTCP4XieA9dpn/m95SZPqNG+/N6hPatlmnH2jByb sZlObGJTtEJYA0Op3bXRtChEzjAp8BclJBIfjRGjs2B/AcYDQrSKYPjXJ03bSVy/oqi7 ERk4byWS0SkICFamp1yN/3n3rnH0r/S2fZjfSjPUAvmlLdTeYiDK7OZuWeg33EP1vcX4 nKl01bzc5kiwc/BvcXxliIp0Tb3VsvyMJKmIcNM9DqdpNrcYllwVIJCEJJEnRF3CVuC3 G96m8QFiK5FHS0Iq2M3+S3W9vOn1xsKxVcl7CyZhZjCrk3Hcphkhb9NBJkl7evA/9gmC 0MoQ== X-Gm-Message-State: ALoCoQkL9wpgb3zQERmx2FJssUG6H3LULIL24j0tjJHq8inD05q21fQo/rsl8Tsd2RG668rYruZt X-Received: by 10.58.225.197 with SMTP id rm5mr8840761vec.5.1397798944786; Thu, 17 Apr 2014 22:29:04 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.84.103 with SMTP id k94ls1453945qgd.30.gmail; Thu, 17 Apr 2014 22:29:04 -0700 (PDT) X-Received: by 10.220.59.65 with SMTP id k1mr11306227vch.22.1397798944701; Thu, 17 Apr 2014 22:29:04 -0700 (PDT) Received: from mail-ve0-x236.google.com (mail-ve0-x236.google.com [2607:f8b0:400c:c01::236]) by mx.google.com with ESMTPS id e9si4802449vcf.157.2014.04.17.22.29.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 17 Apr 2014 22:29:04 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::236 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::236; Received: by mail-ve0-f182.google.com with SMTP id jw12so2124799veb.27 for ; Thu, 17 Apr 2014 22:29:04 -0700 (PDT) X-Received: by 10.52.188.65 with SMTP id fy1mr242541vdc.53.1397798944513; Thu, 17 Apr 2014 22:29:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp87373vcb; Thu, 17 Apr 2014 22:29:04 -0700 (PDT) X-Received: by 10.66.122.1 with SMTP id lo1mr20261954pab.118.1397798943750; Thu, 17 Apr 2014 22:29:03 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id sf3si15768846pac.1.2014.04.17.22.29.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Apr 2014 22:29:03 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-365353-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 29556 invoked by alias); 18 Apr 2014 05:28:51 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 Received: (qmail 29547 invoked by uid 89); 18 Apr 2014 05:28:51 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Apr 2014 05:28:49 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Fri, 18 Apr 2014 06:28:46 +0100 Received: from SHAWIN205 ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 18 Apr 2014 06:29:00 +0100 From: "Joey Ye" To: Subject: [patch, testsuite] Fix fragile case nsdmi-union5 Date: Fri, 18 Apr 2014 13:28:57 +0800 Message-ID: <000001cf5ac7$1ac58de0$5050a9a0$@arm.com> MIME-Version: 1.0 X-MC-Unique: 114041806284600701 X-Original-Sender: joey.ye@arm.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::236 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gcc.gnu.org X-Google-Group-Id: 836684582541 Resulting from discussion here: http://gcc.gnu.org/ml/gcc/2014-04/msg00125.html ChangeLog: * g++.dg/cpp0x/nsdmi-union5.C: Change to runtime test. Index: gcc/testsuite/g++.dg/cpp0x/nsdmi-union5.C =================================================================== --- gcc/testsuite/g++.dg/cpp0x/nsdmi-union5.C (revision 209462) +++ gcc/testsuite/g++.dg/cpp0x/nsdmi-union5.C (working copy) @@ -1,6 +1,5 @@ // PR c++/58701 -// { dg-require-effective-target c++11 } -// { dg-final { scan-assembler "7" } } +// { dg-do run { target c++11 } } static union { @@ -9,3 +8,10 @@ int i = 7; }; }; + +extern "C" void abort(void); +int main() +{ + if (i != 7) abort(); + return 0; +}