public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6431] d: Add test for PR d/108167 to the testsuite [PR108167]
@ 2023-03-03 0:26 Iain Buclaw
0 siblings, 0 replies; only message in thread
From: Iain Buclaw @ 2023-03-03 0:26 UTC (permalink / raw)
To: gcc-cvs
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];
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-03 0:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-03 0:26 [gcc r13-6431] d: Add test for PR d/108167 to the testsuite [PR108167] Iain Buclaw
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).