mirror of
https://github.com/buggins/dlangide.git
synced 2025-04-25 20:49:56 +03:00
22 lines
289 B
D
22 lines
289 B
D
import std.stdio;
|
|
import for_rdmd_test;
|
|
|
|
void main()
|
|
{
|
|
writeln("test!");
|
|
debug writeln("I am in debug mode");
|
|
writeln(inc(10));
|
|
}
|
|
|
|
int f(int x)
|
|
{
|
|
return x*x;
|
|
}
|
|
|
|
unittest {
|
|
writeln("unittest!");
|
|
assert(f(0) == 0);
|
|
assert(f(5) == 25);
|
|
assert(f(-5) == 25);
|
|
}
|
|
|