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

18 lines
477 B
D

// RUN: %ldc -enable-dynamic-compile -I%S %s %S/inputs/rtconst_owner.d %S/inputs/rtconst_user.d -run
// RUN: %ldc -enable-dynamic-compile -singleobj -I%S %s %S/inputs/rtconst_owner.d %S/inputs/rtconst_user.d -run
import ldc.dynamic_compile;
import inputs.rtconst_owner;
import inputs.rtconst_user;
void main(string[] args)
{
compileDynamicCode();
assert(11 == getValue());
value = 2;
assert(11 == getValue());
compileDynamicCode();
assert(12 == getValue());
}