diff --git a/compiler/test/runnable/mars1.d b/compiler/test/runnable/mars1.d index b24eced9f7f4..f493eac181de 100644 --- a/compiler/test/runnable/mars1.d +++ b/compiler/test/runnable/mars1.d @@ -2478,6 +2478,19 @@ void test21835() if (arr[0].r != 0.0) assert(0); } +//////////////////////////////////////////////////////////////////////// +// https://github.com/dlang/dmd/pull/16187#issuecomment-1946534649 + +void testDoWhileContinue() +{ + int i = 10; + do + { + continue; + } + while(--i > 0); +} + //////////////////////////////////////////////////////////////////////// int main() @@ -2578,6 +2591,7 @@ int main() test21256(); test21816(); test21835(); + testDoWhileContinue(); printf("Success\n"); return 0;