From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 7D2D5388A002 for ; Tue, 22 Feb 2022 14:33:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7D2D5388A002 Received: by mail-wr1-x433.google.com with SMTP id u1so33647856wrg.11 for ; Tue, 22 Feb 2022 06:33:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=t5ElCufkF2wmdh1/Hly7as9CMxTgicacB/S9pfQkpQ8=; b=H/JXMEfOCB8KkT7gmv6s+xcC7jknetC/l8Xb9unp/OltweptkPad7g7eS/ZNY8W+BQ vE+Nlr8W5FBJK4Oq2pDb3KNrii2rpi314YGMsQxKOAllBlHv+l3rRIT4IE15sxCo5uzF tew6QcoPmrbUWZhG6R/NzxMPqCG8w5gQ4oe0kM9Ba+QVaY+MuPf6Sx2xI7o3/IABfT99 aPgV7UpkpfEsWku3IM3D70S6H7SzmcXR2WQH+ne8EYtEFeP8saXRhJ8JupXNoWEH2Az3 gzSv4a3ZypzsNBW9+oDsJaO8HEiriA7tbZVDqB3vx+rUkOQVQsD753BTwrqyhT0Wc966 vx0w== X-Gm-Message-State: AOAM531xqs/Ne291cYS7nwz0sYqkg2w9Ggqb9vB1qZHTIvtnmaesAu3i PKoVG3g3KCjesApcTQlwAxZu/1i3XXJXhbNCB1s= X-Google-Smtp-Source: ABdhPJyVZa1KL8+mJCqGhANj6OPchENEcHNOmzz4wEv49MCcNHGnrX1LQuySDoUbRbjny0ywwlp17FZedzy3eWIE5MA= X-Received: by 2002:a5d:6701:0:b0:1e3:3ba6:d2e8 with SMTP id o1-20020a5d6701000000b001e33ba6d2e8mr19530699wru.221.1645540388637; Tue, 22 Feb 2022 06:33:08 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Tue, 22 Feb 2022 14:32:57 +0000 Message-ID: Subject: Re: Doubt regarding dg-directives To: Krishna Narayanan Cc: gcc-help X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2022 14:33:11 -0000 On Tue, 22 Feb 2022 at 14:31, Jonathan Wakely wrote: > > > On Tue, 22 Feb 2022 at 11:43, Krishna Narayanan via Gcc-help < > gcc-help@gcc.gnu.org> wrote: > >> Hello, >> I had been working on a testcase,in which there had to be a warning on >> a specific line. On giving the /* { dg warning "text" } */ to that >> > > > That should be dg-warning, did you get it right in the test? > > >> line ,the test outcome is FAIL(test for warnings) even though the >> warning was expected. >> > And does the warning actually happen? dg-warning says a warning is expected, so the test will fail if no warning happens.