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