From patchwork Mon Dec 18 08:54:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 180210 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp1109433dyi; Mon, 18 Dec 2023 00:55:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfzFGCGVSQw3Z4jnbGSd3TGGYRJ9lv8D2+m2TPhWEaznFQgvQIaDf4n03jOmRTHJXDEiE0 X-Received: by 2002:a05:622a:60c:b0:425:4043:29e5 with SMTP id z12-20020a05622a060c00b00425404329e5mr20336332qta.96.1702889701412; Mon, 18 Dec 2023 00:55:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702889701; cv=pass; d=google.com; s=arc-20160816; b=CxVAyFmJ33zd8K2ESSJAJ4DkofvCzCv1N3JQyE1FZDtQNPsHu8EG9D3RWnXk/ohweA HzF2N8yTwhLmVJnFoz5/mPY0xNwICxFs8Du8/FF1Y/iA1ptnluCBQFu6YtIAEX4iwdvZ FHHOTs7hr+fi+5m2PS7P7CGvhy2frEcjdSA16uGqsGHmF7Ab+1uvJOlVjOd51IJxdJEM oF04+S+2lPEHxU5EU05EZYoi6yCqwaSLYquiJGvTBtXJGAsZus0OI9SdCh9aQwEzBC4b eUV06qqE9RcJzRoKYaooVxLD1BGSE5yRI49sjeCMHj4s6FXMsp2PybXGw2o27IRWw66w nouw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:reply-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition:in-reply-to :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=J5CreeJ0czmFJz/Ikvi5R/sd0wQHjscJBSAxzLKf1RI=; fh=locZQDuiAikOmWinUGG0VNbJob+7RAJo0pysFORUfsU=; b=OHvXrFbSmaK/ZgNziuC6kEW5f/VV5UlSWIbBeh6djJjj59RgTDV3OLGq1MDaaWKy0Q TC0yrAfPBXt94ZlTYlfyaiCdnx/Ys7gLTew8m0dHKROIKFbH3wuaUzOF4d7ADmHil5tc b/LVbxpr7nUeCqZ0Mg7dKyj9OwAwOUDuZnSsHw4IT9q/85/ZOaXY/grCs0yjmhPzFavK nl/mFgyKuSUxGz1FTsJUN6k95joxAcazQWHS04v60NfCB1kTRmKNFwgVTrrvXX51qgTn TKfDTrpS8AEJrXfynaSCZc+gtQy01HMQbE3N/Ji8ntiH9L+Y8WCTC84mjOgo8RVfIw1q RVyQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZGb0Cjvc; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id b9-20020ac86bc9000000b004254883439dsi21716168qtt.685.2023.12.18.00.55.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 00:55:01 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZGb0Cjvc; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2350D385828B for ; Mon, 18 Dec 2023 08:55:01 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 2D17E3858424 for ; Mon, 18 Dec 2023 08:54:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2D17E3858424 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2D17E3858424 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702889677; cv=none; b=qfWB/s4uwA0sz0s9Yq1q3NWTkXiEOL2Ot/Gq9RfQRep2oWQ5TTIGGGpo3QFJcisUK1frHiH2ACobJ/UF5d8ycGQA15kQW4xgAaBPDsDV8A3QOfNDLV2PTmaNuXL4vVpnKeRKhF3IEWcX+ANzyp2NJGUTx1v8K64Lp8iA/SL7hDc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702889677; c=relaxed/simple; bh=a2ZZNU7MGGW81rw9KC2WyI6tpyAhaLtyLwyBIxIVF0w=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=i8sPkohAaB5OuVP4yayZgvcV+F3FsEpjblXiBfjbePLUFug1qaEeokQf3FXaNpBzJ8LNvD4UQjjpwGKbaz4wgGkpZGzqULsXuDfjoyCWh4thktROna7t0Ll90CSRlk1CW3hHLOufi8/6vnWplPrctYOheITY+QxjN6sWFWswUMQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702889675; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=J5CreeJ0czmFJz/Ikvi5R/sd0wQHjscJBSAxzLKf1RI=; b=ZGb0CjvcPsdYW4leZ+8EoclD5wV9lS0nwyws7tOPHGZwaw4pz8191qzEKo+4b/O/kJiudx nvpcmLMQi3FKrUVnq0BQDsXo4phkL+5iyUFJyoDg4ge8Z4jJFZx79tw3r3TdgnlCNLJiTi huMdINSF8qAH9z5it9Q8jQHsJlWPNTA= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-672-Hja8kDD5PZeowPtdTGXRxg-1; Mon, 18 Dec 2023 03:54:31 -0500 X-MC-Unique: Hja8kDD5PZeowPtdTGXRxg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BFA88299E744 for ; Mon, 18 Dec 2023 08:54:30 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.92]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 832D851D5; Mon, 18 Dec 2023 08:54:30 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 3BI8sSBu1275674 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 18 Dec 2023 09:54:28 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 3BI8sRsa1275673; Mon, 18 Dec 2023 09:54:27 +0100 Date: Mon, 18 Dec 2023 09:54:27 +0100 From: Jakub Jelinek To: Patrick Palka Cc: Jason Merrill , gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Fix up abi-tag25a.C test for C++11 Message-ID: References: <20231214191719.1941342-1-ppalka@redhat.com> <7ded5b9e-4718-4a48-9d18-5a88321d2163@redhat.com> <49477513-edfe-7ab6-95d6-7ea3496707ac@idea> <168ac308-cc1e-43af-8f96-19fab9dddfa8@redhat.com> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Jakub Jelinek Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785609271964457416 X-GMAIL-MSGID: 1785609271964457416 On Thu, Dec 14, 2023 at 07:59:26PM -0500, Patrick Palka wrote: > * g++.dg/abi/abi-tag25.C: New test. > * g++.dg/abi/abi-tag25a.C: New test. Line 11 of abi-tag25.C is wrapped in #if __cpp_variable_templates which isn't defined for -std=c++11, so we can't expect a warning in that case either. Tested on x86_64-linux with GXX_TESTSUITE_STDS=98,11,14,17,20,23,26 make check-g++ RUNTESTFLAGS=dg.exp=abi-tag25a.C and committed to trunk as obivous. 2023-12-18 Jakub Jelinek * g++.dg/abi/abi-tag25a.C: Expect second dg-warning only for c++14 and later. Jakub --- gcc/testsuite/g++.dg/abi/abi-tag25a.C.jj 2023-12-18 09:39:49.566353318 +0100 +++ gcc/testsuite/g++.dg/abi/abi-tag25a.C 2023-12-18 09:47:21.163001320 +0100 @@ -5,7 +5,7 @@ #include "abi-tag25.C" // { dg-warning "mangled name" "" { target *-*-* } 5 } -// { dg-warning "mangled name" "" { target *-*-* } 11 } +// { dg-warning "mangled name" "" { target c++14 } 11 } // { dg-final { scan-assembler "_Z3funIiEvv" } } // { dg-final { scan-assembler "_Z3varIiE" { target c++14 } } }