aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2023-02-27 18:38:53 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2023-03-03 01:24:28 +0100
commit33a7811896a6c8e6fa71e385dbdf5013d833a116 (patch)
tree5752d95ff51d9581b24b8f8ecb7ed206c5dd924c /gcc/testsuite/gdc.dg
parent51af8a6401eea726d3498e6b2aba456b6af246d6 (diff)
downloadgcc-33a7811896a6c8e6fa71e385dbdf5013d833a116.zip
gcc-33a7811896a6c8e6fa71e385dbdf5013d833a116.tar.gz
gcc-33a7811896a6c8e6fa71e385dbdf5013d833a116.tar.bz2
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.
Diffstat (limited to 'gcc/testsuite/gdc.dg')
-rw-r--r--gcc/testsuite/gdc.dg/pr108167.d5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.dg/pr108167.d b/gcc/testsuite/gdc.dg/pr108167.d
new file mode 100644
index 0000000..1337a49
--- /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];
+}