diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/issue21328.d')
-rw-r--r-- | gcc/testsuite/gdc.test/compilable/issue21328.d | 8 |
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]; + } (); +} |