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: 340215 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 81CA51412D8 for ; Fri, 18 Apr 2014 15:28:58 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=wFtHxbUbAA9m3zCO iFkE2vnC4Hcpkns+pnWy1WELbFm8QpBJKYXKnjLlznzGjF5d7tH2GEIPmVDfWcoO 9b9DGs2KBatB3+XY2hgDMkZxiYiVbh/m/vpoC5elybj1LeK84YWwjXKttiqBeLTY KKK/EFVl93tXgbnUBWx6CpjjSj4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=2AN4/iAFqtvt96z0ZDtwXY hQpnk=; b=xp2Wl1XPkZ+vXviVKWU6uxZ/YLs5KSgzB1wJ0jU4S5h01zaKYu8H8N 8ejXWXGJHopvOxcRQt7eqEXtOl7zQHAHxYVHhIIo2kE1eJfBASihpiSM6WrrS3Ey /r2TO+j+h7tNAXaM+3g4NPcywMdymGPmCiuwsC0JyPy7MYQ3WssuQ= Received: (qmail 29556 invoked by alias); 18 Apr 2014 05:28:51 -0000 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 Received: (qmail 29547 invoked by uid 89); 18 Apr 2014 05:28:51 -0000 Authentication-Results: sourceware.org; auth=none 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 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; +}