xxxxxxxxxx
import ldc.attributes;
import ldc.dynamic_compile;
int foo(int a, int b, int c, bool flag)
{
if (flag)
{
}
return a + b + c; // this will be optimized to 40 + c
}
void main() {
auto f = bind(&foo, 30, 10, placeholder, false);
int delegate(int) d = f.toDelegate();
compileDynamicCode();
assert(f(2) == 42);
assert(d(2) == 42);
}