(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
compilable/
test21956.d
// https://issues.dlang.org/show_bug.cgi?id=21956

noreturn[noreturn] nrnr;

void gun()
{
    foreach (a; nrnr){}
}

int main()
{
    noreturn[] empty;
    int val;
    foreach(el; empty) val++;
    return val;
}