mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
13 lines
202 B
D
13 lines
202 B
D
// PERMUTE_ARGS: -inline -g -O
|
|
import core.exception : RangeError;
|
|
void main(string[] args)
|
|
{
|
|
int[2] a;
|
|
try
|
|
{
|
|
foreach(const i; 0..3)
|
|
a[i] = i;
|
|
assert(0);
|
|
}
|
|
catch(RangeError){}
|
|
}
|