summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/issue21328.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/issue21328.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/issue21328.d8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/issue21328.d b/gcc/testsuite/gdc.test/compilable/issue21328.d
new file mode 100644
index 00000000000..91dc0ba0e2c
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/issue21328.d
@@ -0,0 +1,8 @@
+
+static foreach(i; 1 .. 5)
+void foo(float[i] arr)
+{
+ () {
+ float x = arr[0];
+ } ();
+}