From patchwork Wed Sep 21 14:03:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1344 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp1952712wrt; Wed, 21 Sep 2022 07:07:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4mqLXqfZhHJw2RgPXbVmETnDjMDsYElmEEV2fSL7+gmkjtDyUNlTIZtmODHg5026DVRRrS X-Received: by 2002:a17:906:ef90:b0:77c:7227:705 with SMTP id ze16-20020a170906ef9000b0077c72270705mr20545328ejb.565.1663769241601; Wed, 21 Sep 2022 07:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663769241; cv=none; d=google.com; s=arc-20160816; b=kXj/lYHd33V6Ge94RTBuYaVrtvdBe1imGvgASHa3Neki3U2UWr/hlwkIRgYnahfS77 joesJrgQCQj8u6jlShIS8bO8g1aDiIydb9CjHK98nW9gf41j97dr8BhuOtI1D1Qk+I9s r37TgWiKwciL0TLqdk1Terk3i3IxaYVARe8Xcve5WHoWBohR+D/eynDVrFFuMskjqB8u e8z1CzE3MM94smF9Atohnq/Dtd0DntSp4Z8BEX0QINANmqJI29zVbLTCfB/Pwfv0Cppu Zapg2cf4hO4zWZxPt/V1uSz0cBwADjCJYWkh4ipA1Fa+3ZgscgBI/aIGJ61sGoMY0iZJ vjew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=rXdFnnZHrmhXPSm6z14Fdhgo2uZT2z0AgIKB89iPji0=; b=Va4ZSJUSWjT29CqcqVL/CJc6f/lmPhBhwhsgbyy0b5Qbd/b7kUujEIcJuED2dFwGPL dm3/opzBmWouVcSgBGpwZTLAQMDL9WD6iORPU7WvZ/zYtr7NJiU64xU3uoR/a9OqeClJ fuCIV5oVyva9L87t2pAhs0S9meVmR1eppohbM+HLVDsLdFlAhXtL7FeFIGLkBhh7jqbp OYLgeYkQ1eLb5vl3fteto8SHU5F45AATQeDuPvRszXilkz0zBtGzkKvWL05wKPxyjQqN CR/Ws4HeDwWvTb3reTnBvoQrIZ2ilkXoO+kqGfI3G8HclYd8cMmK+GgFcJLEsw7S7ET6 zTEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=sJH0KltV; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id v15-20020a170906858f00b007811199c24esi2333190ejx.467.2022.09.21.07.07.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 07:07:21 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=sJH0KltV; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 122E7385703C for ; Wed, 21 Sep 2022 14:05:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 122E7385703C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663769147; bh=rXdFnnZHrmhXPSm6z14Fdhgo2uZT2z0AgIKB89iPji0=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=sJH0KltVj1DDHDxwNQcpLhNBarHHyv/a6fMxDipuZ5nTZn0kNP7/Z4HzUkmPL3eOH AAR+5e2lKc3WkJDupkckaGay7qGu+pmrVwOSoMSYw0SxITsXSEw9MlHe4mLk3/ZtQy mC0ZQQUQIr003ww6xELM2BZ28QvGRJ5n/qFMiowo= 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.129.124]) by sourceware.org (Postfix) with ESMTPS id 738CD3857825 for ; Wed, 21 Sep 2022 14:03:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 738CD3857825 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-515-8agXnWDYMtivJy6eXx-jWA-1; Wed, 21 Sep 2022 10:03:20 -0400 X-MC-Unique: 8agXnWDYMtivJy6eXx-jWA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8051F101E152; Wed, 21 Sep 2022 14:03:20 +0000 (UTC) Received: from localhost (unknown [10.33.36.214]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4AA08492B15; Wed, 21 Sep 2022 14:03:20 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Remove main() from some compile-only tests Date: Wed, 21 Sep 2022 15:03:19 +0100 Message-Id: <20220921140319.922789-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jonathan Wakely via Gcc-patches From: Jonathan Wakely Reply-To: Jonathan Wakely Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1744588496264579385?= X-GMAIL-MSGID: =?utf-8?q?1744588496264579385?= Tested powerpc64le-linux, pushed to trunk. -- >8 -- libstdc++-v3/ChangeLog: * testsuite/17_intro/headers/c++1998/all_attributes.cc: Remove unnecessary main function. * testsuite/17_intro/headers/c++2011/all_attributes.cc: Likewise. * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise. * testsuite/17_intro/headers/c++2017/all_attributes.cc: Likewise. * testsuite/17_intro/headers/c++2020/all_attributes.cc: Likewise. --- .../testsuite/17_intro/headers/c++1998/all_attributes.cc | 5 ----- .../testsuite/17_intro/headers/c++2011/all_attributes.cc | 5 ----- .../testsuite/17_intro/headers/c++2014/all_attributes.cc | 5 ----- .../testsuite/17_intro/headers/c++2017/all_attributes.cc | 5 ----- .../testsuite/17_intro/headers/c++2020/all_attributes.cc | 5 ----- 5 files changed, 25 deletions(-) diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc b/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc index 20cda779b03..b8b37473505 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc @@ -38,8 +38,3 @@ #include #include - -int -main() -{ -} diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2011/all_attributes.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2011/all_attributes.cc index c2b4c236da7..222ab786c95 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++2011/all_attributes.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2011/all_attributes.cc @@ -38,8 +38,3 @@ #include #include - -int -main() -{ -} diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2014/all_attributes.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2014/all_attributes.cc index f6c4251acbc..b31d13f22d0 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++2014/all_attributes.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2014/all_attributes.cc @@ -38,8 +38,3 @@ #include #include - -int -main() -{ -} diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc index 170ebef51c6..fd4d7d477f0 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc @@ -37,8 +37,3 @@ #include #include - -int -main() -{ -} diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2020/all_attributes.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2020/all_attributes.cc index 1d573a20c10..f700badb304 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++2020/all_attributes.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2020/all_attributes.cc @@ -36,8 +36,3 @@ #include #include - -int -main() -{ -}