ldc/tests/dynamiccompile/tls_workaround_opt.d
2017-11-09 21:34:58 +03:00

18 lines
392 B
D

// tls without workaround broken on all platforms
// just test ldc accept this option
// RUN: %ldc -enable-dynamic-compile -dynamic-compile-tls-workaround=0 -run %s
// RUN: %ldc -enable-dynamic-compile -dynamic-compile-tls-workaround=1 -run %s
import ldc.attributes;
import ldc.dynamic_compile;
@dynamicCompile void foo()
{
}
void main(string[] args)
{
compileDynamicCode();
foo();
}