From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id 3C2053858011 for ; Tue, 30 Jan 2024 12:11:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C2053858011 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3C2053858011 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::331 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706616673; cv=none; b=IbirB2gLtyJMW8jLdmr/rhd3AlqmksCbTfHyhqbRfAd1es28S5NbQ5ZUsew7SBffnuhNj6sSkpO6TWhNvVcaKlE6Y5Z9uxTaX8Ulbmc3CjwHMqVVBHpm6VeU1Jm7j6v/loYDhFObWMucmqnsKSzBQQ2EpSgJOE6s38ca2pRG6gw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706616673; c=relaxed/simple; bh=kXMRablxmdhB/Uw+4C9wA5nkkVvmwJYn/ZjxA1dOxa8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=nL8IHSSfvDyYCzHKv4ve1FYflSVjaO1nJhgPglqdEAjLixOjxJMqXsKpoHld/98rkVTFwykYxPEaBP7Wy86bvOeaLziHzB/tbFr+PrnlUGK1RJNUnAkwvFQGikM/3dAKOyys0kXS4FnHeKCQHeHHtPI8JEuGCUX70w+I3jaEJ1U= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40f033c2e30so4226615e9.0 for ; Tue, 30 Jan 2024 04:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1706616664; x=1707221464; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=5WIG602jF0/NcdS+HfCAx3v6LginBYLqhITxXSERSas=; b=TyVVqs9Xik1/9DqPhahGBCRVEfdPM3Vk73BaWj700an3iOSK9QYGkO2JmYuAh+zgLx GqBTj3wNWQppStCINRsTCzXtBfFtdwklBCexPuJZxavwM0c2iy7m7uKEy52evHkk+mWm +0jCdFIg5joKaU8LoykuyCGEI/zmcmao+/tv3gkNv8ScEMxN4iYY+jsHtj2ru/BfrUpI 1YAbu61NRYr0yoWABYhjQCgBBECCW43uaQf8aBRNE3BhtYaNPga16ZMVq1pgvRpXkTPH +cvu9gl0mXVmTw1iQZcMpbV9YIl0IRs/8uFIlhOpiWXUDmzEt//eD17ndiIe2pEeit43 wGrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706616664; x=1707221464; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5WIG602jF0/NcdS+HfCAx3v6LginBYLqhITxXSERSas=; b=RCyx7Pf5KeN6CP6LZxvrVXEpZHJjrJnJuU+MElrm6HDkY+dD5FI0kxJZbChP2ZsDKg EdhAzeUGb0Q5/XcdqIv3hV1DL2tH36XmUiRUCDyljL5R8eLM9BdO3q628lyEfh8MWnbN tENrlngbNuWUhi0XQXF5205/hMhXjpIwFojXhqZmIZdgyo55qPXuIklyIShwqHbcYYpo 9uXKWSBAj+d9qFudp9BGgWc4Fed2Nku7oI69En283wg3GdNZlQaI4zoMgopKVBaXj01A t8Y2sumH0qC0lzCQ8JIXBYIYyH8GNEqMlIFEAIkBu1DR4duN95I8eC5h6/bHQG1/OOJj eJ3w== X-Gm-Message-State: AOJu0Yy2mHjsF2O4sexkWhl1aTo2t0Tfp4gW03eBnqqIzqNlbJy43fQ1 btpt4rURmb4mpSZmdHc0Rciu5tRn7B7YoHrB4UCsLAeAl1E+9oq19RJUIaJ/S6+F6N1tXJDf3aN ulw== X-Google-Smtp-Source: AGHT+IF4MGzquryoEQoTJPY0XdUURQEZb7yC5re81/QD8WawyBNhHzmLXEyhNHWNhRjhWKFTrDrcdw== X-Received: by 2002:adf:ca84:0:b0:337:c4b3:e03e with SMTP id r4-20020adfca84000000b00337c4b3e03emr5592044wrh.1.1706616663878; Tue, 30 Jan 2024 04:11:03 -0800 (PST) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id f9-20020a056000036900b00339307d9d31sm10569894wrf.112.2024.01.30.04.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 04:11:03 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Pierre-Emmanuel Patry Subject: [COMMITTED 019/101] gccrs: Add a regression test for super trait on auto trait Date: Tue, 30 Jan 2024 13:06:35 +0100 Message-ID: <20240130121026.807464-22-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20240130121026.807464-2-arthur.cohen@embecosm.com> References: <20240130121026.807464-2-arthur.cohen@embecosm.com> Reply-To: arthur.cohen@embecosm.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: Pierre-Emmanuel Patry Add a new regression test to highlight the error behavior with a super trait on an auto trait. gcc/testsuite/ChangeLog: * rust/compile/auto_trait_super_trait.rs: New test. Signed-off-by: Pierre-Emmanuel Patry --- gcc/testsuite/rust/compile/auto_trait_super_trait.rs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 gcc/testsuite/rust/compile/auto_trait_super_trait.rs diff --git a/gcc/testsuite/rust/compile/auto_trait_super_trait.rs b/gcc/testsuite/rust/compile/auto_trait_super_trait.rs new file mode 100644 index 00000000000..1080afb5124 --- /dev/null +++ b/gcc/testsuite/rust/compile/auto_trait_super_trait.rs @@ -0,0 +1,4 @@ +trait Cold {} + +auto trait IsCool: Cold {} +// { dg-error "auto traits cannot have super traits .E0568." "" { target *-*-* } .-1 } -- 2.42.1