mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
15 lines
258 B
D
15 lines
258 B
D
module arrays5;
|
|
//import std.stdio;
|
|
void main()
|
|
{
|
|
auto arr = new float[5];
|
|
arr[4] = 1f;
|
|
//writefln(arr);
|
|
assert(arr[0] !<>= 0f);
|
|
assert(arr[1] !<>= 0f);
|
|
assert(arr[2] !<>= 0f);
|
|
assert(arr[3] !<>= 0f);
|
|
assert(arr[4] == 1f);
|
|
}
|
|
|