mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 09:00:33 +03:00
18 lines
392 B
D
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();
|
|
}
|