Message ID | 20240206165013.95081-1-polacek@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=gF5ZYHSG; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TTq4h2Gmtz23gb for <incoming@patchwork.ozlabs.org>; Wed, 7 Feb 2024 03:50:44 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 47E323858C29 for <incoming@patchwork.ozlabs.org>; Tue, 6 Feb 2024 16:50:42 +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 5F40D3858C29 for <gcc-patches@gcc.gnu.org>; Tue, 6 Feb 2024 16:50:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5F40D3858C29 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 5F40D3858C29 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=1707238221; cv=none; b=QuORtyM0/N2VeokW5CG9yW552ZETZZgrg2feo+mo8S04r5mzuZyyJr9YZKsEy4ns8MCDe7dUkTBT88wLTo+HgALCUWZJKou/Bzm7+OqS1XAHXI6oXB/CEdhOfe/hLdWz9OFMXAvbpZCIrIf8lm8sFvKVKloRhLY/QTIjARPtBtE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707238221; c=relaxed/simple; bh=gdYvMPyDz5nLm0zAzE7OWi5gvySCTPFJnhdLaX6nHYo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=rEj1BztwQf8kRNln+YgOfURZb0vk+206gVmO5NTi9SyYcYKpETHlhE9WRUcJaBCOUtpQL0fLqG7n4154I/eGke5cipp7Sg3TArWwmM1vTBTNSECLVuw1oybssYfWvtv6FZxRKi41yXiLweQWY/+d3tCrxo4C35bKkRAi0qIJ64M= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707238218; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Qs5/RaWm9KGpTSu3hezEOCXQ8hizmQhZYp1hscoMYJY=; b=gF5ZYHSGZ8kpWL2XUf3J3OpAjNeKVB1DPS/Zw20YaErpdqCxXuzcK/zqZU4OferX1yisYK EHhxXZBSTEi8KZxOz7dmCEFjVzzM8FycEO7Cfeb6ZF/JC3xuUcatjsbAul7rdK4o6hOspl q12SDCVjHaBlxJXUT+IUacGirqm9klI= 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-376-gAtU7VhTM8upoSw3V69XtA-1; Tue, 06 Feb 2024 11:50:16 -0500 X-MC-Unique: gAtU7VhTM8upoSw3V69XtA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (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 4676B29AC000 for <gcc-patches@gcc.gnu.org>; Tue, 6 Feb 2024 16:50:16 +0000 (UTC) Received: from pdp-11.redhat.com (unknown [10.22.33.28]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2BB5E1C060AF for <gcc-patches@gcc.gnu.org>; Tue, 6 Feb 2024 16:50:16 +0000 (UTC) From: Marek Polacek <polacek@redhat.com> To: GCC Patches <gcc-patches@gcc.gnu.org> Subject: [pushed] c++: add fixed test [PR94231] Date: Tue, 6 Feb 2024 11:50:13 -0500 Message-ID: <20240206165013.95081-1-polacek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-12.5 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_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[pushed] c++: add fixed test [PR94231]
|
expand
|
diff --git a/gcc/testsuite/g++.dg/cpp0x/deleted17.C b/gcc/testsuite/g++.dg/cpp0x/deleted17.C new file mode 100644 index 00000000000..3bebe881165 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/deleted17.C @@ -0,0 +1,20 @@ +// PR c++/94231 +// { dg-do compile { target c++11 } } + +struct F {F(F&&)=delete;}; + +template<int=0> +struct M { + F f; + M(); + M(const M&); + M(M&&); +}; + +template<int I> +M<I>::M(M&&)=default; // { dg-error "use of deleted function" } + +M<> f() { + M<> m; + return m; +}