https://gcc.gnu.org/g:c7dab40d7569c51ac4e62ceea05c7c049da426bb

commit r15-6965-gc7dab40d7569c51ac4e62ceea05c7c049da426bb
Author: Iain Buclaw <ibuc...@gdcproject.org>
Date:   Thu Jan 16 17:20:06 2025 +0100

    d: Add testcase for fixed PR116373
    
    This was fixed in upstream, and merged in r15-6559-g332cf038fda109.
    
            PR d/116373
    
    gcc/testsuite/ChangeLog:
    
            * gdc.dg/pr116373.d: New test.

Diff:
---
 gcc/testsuite/gdc.dg/pr116373.d | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gcc/testsuite/gdc.dg/pr116373.d b/gcc/testsuite/gdc.dg/pr116373.d
new file mode 100644
index 000000000000..b58863bacf29
--- /dev/null
+++ b/gcc/testsuite/gdc.dg/pr116373.d
@@ -0,0 +1,8 @@
+// { dg-do compile }
+int[] x;
+
+void foo (int[] y = x[]) {}
+
+void main () {
+    foo();
+}

Reply via email to