dmd/compiler/test/compilable/betterCswitch.d
2022-07-09 18:53:07 +02:00

17 lines
189 B
D

import core.stdc.stdio;
extern (C) int main()
{
printf("hello world\n");
foo(3);
return 0;
}
int foo(int i)
{
final switch (i)
{
case 1: break;
}
return i;
}