dmd/compiler/test/runnable/imports/standalone_b.d
Dennis 14ecea9ea7
Add @standalone attribute for module constructors (#15537)
* Add `@__standalone` attribute

* Remove underscores from __standalone
2023-12-22 11:03:03 -08:00

11 lines
170 B
D

module standalone_b;
import standalone_modctor;
import core.attribute : standalone;
immutable int* y;
@standalone @system shared static this()
{
y = new int(2);
}