public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Jason Merrill <jason@redhat.com>, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] c++: Add testcases from some Issaquah DRs
Date: Tue, 14 Feb 2023 12:33:43 +0100	[thread overview]
Message-ID: <Y+txl1IyGzCWNC3E@tucnak> (raw)
In-Reply-To: <Y+tu4LN1R2FYe02y@tucnak>

On Tue, Feb 14, 2023 at 12:22:33PM +0100, Jakub Jelinek via Gcc-patches wrote:
> 2023-02-14  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* g++.dg/DRs/dr2691.C: New test.

Actually, this one isn't a DR, so maybe it should go into:
	* gcc/testsuite/c-c++-common/cpp/delimited-escape-seq-8.c: New test.
instead.

> --- gcc/testsuite/g++.dg/DRs/dr2691.C.jj	2023-02-14 11:48:35.841335492 +0100
> +++ gcc/testsuite/g++.dg/DRs/dr2691.C	2023-02-14 11:57:21.538669133 +0100
> @@ -0,0 +1,15 @@
> +// DR 2691 - hexadecimal-escape-sequence is too greedy
> +// { dg-do run { target c++11 } }
> +// { dg-require-effective-target wchar }
> +// { dg-options "-pedantic" }
> +
> +extern "C" void abort ();
> +
> +const char32_t *a = U"\x{20}ab";        // { dg-warning "delimited escape sequences are only valid in" "" { target c++20_down } }
> +
> +int
> +main ()
> +{
> +  if (a[0] != U'\x20' || a[1] != U'a' || a[2] != U'b' || a[3] != U'\0')
> +    abort ();
> +}

	Jakub


  reply	other threads:[~2023-02-14 11:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-14 11:22 Jakub Jelinek
2023-02-14 11:33 ` Jakub Jelinek [this message]
2023-02-14 22:03   ` Jason Merrill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y+txl1IyGzCWNC3E@tucnak \
    --to=jakub@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jason@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).