From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by sourceware.org (Postfix) with ESMTPS id 388923858D1E for ; Fri, 8 Sep 2023 20:15:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 388923858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2bd0d19a304so43160771fa.1 for ; Fri, 08 Sep 2023 13:15:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694204110; x=1694808910; darn=gcc.gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BRivL+TVZiW2wha9lsFyep4TXAQTV/gQ3jjRDJhdK2E=; b=EPXdmdH7ff699jao2RpWAcYki88NBeVj4He51EQRZC/NLY7fms2Kp7LzhQrn8zRwrI 0piE73RFGPBmzHip6ZxLKuelC1WXcb7HEFnaV2kZJ1qiAQy5k0gXxD8RznIvt/NGTW36 uscqimaag75hFi9TsTLLC21C2rjDkL0y13OZi/fiL2sX1jgxMNUl3gRLIRYSWBbn8iI5 Bibf6axkZTGaqWqO5ugkmxFR/KCnS3zAGBFszJwQPO9sHBzglKPA7dSbksgteNol5lW1 akAVSPYVPMzGSOoBQHUQCx2K9ffASa950QoWrBUB6dnCPeDHABLyxSbXi3zFggQb80kG sLBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694204110; x=1694808910; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BRivL+TVZiW2wha9lsFyep4TXAQTV/gQ3jjRDJhdK2E=; b=LA2946rRoS6p6fMrMr+HeyWMzHk0yZQMGQ0yPKAEXXK1cbck5aSf7my7iwllRQ1Vov qaJCtm0qqAWNv83SljKCG7tlBBRCAxq84OpYB3oX3gCOmCGfctWwjZsvPfNKDpdQk6um ooATCAN1uN0ywIuPDo9GO3uARxzEq+QLxJkZNKmRDvqG4MHGM9vOI0/+33DIHYvUiqNh zqNlXOWgKdYN5yyTX0r5yJPH2ho0/oTJ6QNSym1QkoqxQc+RfH5o7935uttP6m4Ki0LK erJJNU8GSnGxkPQKPH0kGN7Azxzw7ZXs/y+q946sgZS5R9MDT5S9HyXGfmm3gEuasy1E dQLA== X-Gm-Message-State: AOJu0Yx5jX5bO/NvEpe+/kkUnSBAPTxKP9RM80Qj4IvSBKxQJZ5hZUbn jt1LFSQE8zPF2D2qbOk02RrA2tJn3sgn/C3mBzZ4FHuU X-Google-Smtp-Source: AGHT+IF23iPjXJkHh0UudAm5i4trY6eJR1A2x7u+3PFw67x22YQWTS9s2Fn70asfquFevkZ9jfSgavv/H793LCWd4cc= X-Received: by 2002:a05:651c:d0:b0:2b6:cb55:72bc with SMTP id 16-20020a05651c00d000b002b6cb5572bcmr2606563ljr.1.1694204110370; Fri, 08 Sep 2023 13:15:10 -0700 (PDT) MIME-Version: 1.0 References: <20230825204554.2440771-1-lhyatt@gmail.com> In-Reply-To: <20230825204554.2440771-1-lhyatt@gmail.com> From: Lewis Hyatt Date: Fri, 8 Sep 2023 16:14:58 -0400 Message-ID: Subject: Ping: [PATCH] testsuite: Add test for already-fixed issue with _Pragma expansion [PR90400] To: gcc-patches List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3035.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 List-Id: Hello- May I please ping this one? It's adding a testcase prior to closing the PR. Thanks! https://gcc.gnu.org/pipermail/gcc-patches/2023-August/628488.html -Lewis On Fri, Aug 25, 2023 at 4:46=E2=80=AFPM Lewis Hyatt wrot= e: > > Hello- > > This is adding a testcase for a PR that was already incidentally fixed. O= K > to commit please? Thanks... > > -Lewis > > -- >8 -- > > The PR was fixed by r12-5454. Since the fix was somewhat incidental, > although related, add a testcase from PR90400 too before closing it out. > > gcc/testsuite/ChangeLog: > > PR preprocessor/90400 > * c-c++-common/cpp/pr90400.c: New test. > --- > gcc/testsuite/c-c++-common/cpp/pr90400.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > create mode 100644 gcc/testsuite/c-c++-common/cpp/pr90400.c > > diff --git a/gcc/testsuite/c-c++-common/cpp/pr90400.c b/gcc/testsuite/c-c= ++-common/cpp/pr90400.c > new file mode 100644 > index 00000000000..4f2cab8d6ab > --- /dev/null > +++ b/gcc/testsuite/c-c++-common/cpp/pr90400.c > @@ -0,0 +1,14 @@ > +/* { dg-do compile } */ > +/* { dg-additional-options "-save-temps" } */ > +/* PR preprocessor/90400 */ > + > +#define OUTER(x) x > +#define FOR(x) _Pragma ("GCC unroll 0") for (x) > +void f () > +{ > + /* If the pragma were to be seen prior to the expansion of FOR, as w= as > + the case before r12-5454, then the unroll pragma would complain > + because the immediately following statement would be ";" rather t= han > + a loop. */ > + OUTER (; FOR (int i =3D 0; i !=3D 1; ++i);) /* { dg-bogus {statement= expected before ';' token} } */ > +}