Message ID | 20220329174603.177011-1-ppalka@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@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=NZSBvLDs; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=<UNKNOWN>) Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KScSX1wtgz9s0w for <incoming@patchwork.ozlabs.org>; Wed, 30 Mar 2022 04:46:34 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C14633888824 for <incoming@patchwork.ozlabs.org>; Tue, 29 Mar 2022 17:46:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C14633888824 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1648575992; bh=9ZpuH75W5qpIIND0fCfjZFnnNcKbfYcwlNcN4eNf28A=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=NZSBvLDsCvgAFh0Y6819BPenOHTjh3SBc//5j6yxdUVi6mgAGlHhkUdPnvmphn6SY m9MS7gPx/2o4d9WlZXJCYGfYipPGM/WrSEJ7gnd7uOfzSvZmEYyHg09qYOI4ayzhuh A2EDl3pEaD7mUjpyp2q1aY4fjjrDF1vO16zkwEJY= 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 C84AC3857C4A for <gcc-patches@gcc.gnu.org>; Tue, 29 Mar 2022 17:46:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C84AC3857C4A Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-161-o6hHrLLHMyumsl1qGXy8Zg-1; Tue, 29 Mar 2022 13:46:09 -0400 X-MC-Unique: o6hHrLLHMyumsl1qGXy8Zg-1 Received: by mail-qk1-f199.google.com with SMTP id q24-20020a05620a0c9800b0060d5d0b7a90so10986103qki.11 for <gcc-patches@gcc.gnu.org>; Tue, 29 Mar 2022 10:46:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9ZpuH75W5qpIIND0fCfjZFnnNcKbfYcwlNcN4eNf28A=; b=18VHBDIA7oYbu7eQC6cacK4vMtvJWCV5kAAsUGWZbmfSci3u+V0HIQBFQIj0loqomi 4ExF4MgWejWydtaLlHk6EqxGzohpHxFeLMkchsOASEwo8NDOVjHUEO+OGdpJKgSlhH0k mJ6XSYSIGs0d7SRgTrCYO6s06QH9P67vtwJ8+WwUjLe7H0cmUB1VjLEccdKDOb307O47 KRIKvo0UuIoWjQQhRyv0grRPooappXHAeh1pSm7zquFN7KlraYzCbhcz+7z4yyhYf64X BJnJEkyFuyLpFpo20KiLue61eB8FUyobA+rq7ZVNksI9BCoOZsdvOayB1FXp9gjhZr3n WivQ== X-Gm-Message-State: AOAM530OPWtV8A7IW8NfHAcD4Y9qdYBzAxQFJVJN27q3eLtC8Pgbk+2P 0UW+VxfpdUDDENPfcUY/OJEA2rrODuFvJ0uxYlz0apCImBWwzQZ1VMWk2J6sOB/X5RmRbx6Udyg YtTNcakBkEOIpiPuBGcYHgNjmDZaU+7mjzj90opB12t+lTKB9PGcqN4rm5eu2+HjPNlA= X-Received: by 2002:ae9:ed96:0:b0:67e:c89e:480a with SMTP id c144-20020ae9ed96000000b0067ec89e480amr21010078qkg.274.1648575968881; Tue, 29 Mar 2022 10:46:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAn0nilQRZYUxtiMq7ENJ24Z57xvRXgsBekKspDH4y+pRKZ6AWq/ECDzNCqQx71xYWP8y3+Q== X-Received: by 2002:ae9:ed96:0:b0:67e:c89e:480a with SMTP id c144-20020ae9ed96000000b0067ec89e480amr21010044qkg.274.1648575968452; Tue, 29 Mar 2022 10:46:08 -0700 (PDT) Received: from localhost.localdomain (ool-18e40894.dyn.optonline.net. [24.228.8.148]) by smtp.gmail.com with ESMTPSA id p16-20020a05622a13d000b002e227782e9asm15217094qtk.14.2022.03.29.10.46.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Mar 2022 10:46:08 -0700 (PDT) To: gcc-patches@gcc.gnu.org Subject: [committed] c-family: Add -Wmisleading-indentation testcase [PR71637] Date: Tue, 29 Mar 2022 13:46:03 -0400 Message-Id: <20220329174603.177011-1-ppalka@redhat.com> X-Mailer: git-send-email 2.35.1.677.gabf474a5dd MIME-Version: 1.0 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=-14.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, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 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> From: Patrick Palka via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Patrick Palka <ppalka@redhat.com> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> |
Series |
[committed] c-family: Add -Wmisleading-indentation testcase [PR71637]
|
expand
|
diff --git a/gcc/testsuite/c-c++-common/Wmisleading-indentation-6.c b/gcc/testsuite/c-c++-common/Wmisleading-indentation-6.c new file mode 100644 index 00000000000..5b7dd7fd2fd --- /dev/null +++ b/gcc/testsuite/c-c++-common/Wmisleading-indentation-6.c @@ -0,0 +1,11 @@ +/* PR c++/71637 */ +/* { dg-options "-ftrack-macro-expansion=0 -Wmisleading-indentation" } */ + +#define m(x) ({ int y; if (x) y=0; else y=1; y; }) + +int main() +{ + int x = + m(0); + return x; +}