Debian Codegraph @

gcc/testsuite/gdc.test/runnable/standalone_modctor.d

raw
1 // REQUIRED_ARGS: -Irunnable/imports
2 // EXTRA_SOURCES: imports/standalone_b.d
3 // PERMUTE_ARGS: -cov
4
5 import standalone_b;
6 import core.attribute : standalone;
7
8 immutable int* x;
9
10 @standalone @system shared static this()
11 {
12 x = new int(1);
13 }
14
15 void main()
16 {
17 assert(*x == 1);
18 assert(*y == 2);
19 }