From: Iain Buclaw Date: Thu, 16 Jan 2025 16:20:06 +0000 (+0100) Subject: d: Add testcase for fixed PR116373 X-Git-Tag: basepoints/gcc-16~2588 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7dab40d7569c51ac4e62ceea05c7c049da426bb;p=thirdparty%2Fgcc.git 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 --git a/gcc/testsuite/gdc.dg/pr116373.d b/gcc/testsuite/gdc.dg/pr116373.d new file mode 100644 index 00000000000..b58863bacf2 --- /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(); +}