public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Iain Buclaw <ibuclaw@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6431] d: Add test for PR d/108167 to the testsuite [PR108167] Date: Fri, 3 Mar 2023 00:26:18 +0000 (GMT) [thread overview] Message-ID: <20230303002618.53F5038582BD@sourceware.org> (raw) https://gcc.gnu.org/g:33a7811896a6c8e6fa71e385dbdf5013d833a116 commit r13-6431-g33a7811896a6c8e6fa71e385dbdf5013d833a116 Author: Iain Buclaw <ibuclaw@gdcproject.org> Date: Mon Feb 27 18:38:53 2023 +0100 d: Add test for PR d/108167 to the testsuite [PR108167] The D front-end implementation got fixed in upstream, add test to the gdc testsuite to check we don't regress on it. PR d/108167 gcc/testsuite/ChangeLog: * gdc.dg/pr108167.d: New test. Diff: --- gcc/testsuite/gdc.dg/pr108167.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/testsuite/gdc.dg/pr108167.d b/gcc/testsuite/gdc.dg/pr108167.d new file mode 100644 index 00000000000..1337a494171 --- /dev/null +++ b/gcc/testsuite/gdc.dg/pr108167.d @@ -0,0 +1,5 @@ +// { dg-do compile } +auto pr108167(const(ubyte[32])[] a) +{ + return cast(const(ubyte)*)&a[1][0]; +}
reply other threads:[~2023-03-03 0:26 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20230303002618.53F5038582BD@sourceware.org \ --to=ibuclaw@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /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: linkBe 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).