Debian Codegraph @

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

raw
1 /**
2 TEST_OUTPUT:
3 ---
4 fail_compilation/standalone_modctor.d(11): Error: `@standalone` can only be used on shared static constructors
5 fail_compilation/standalone_modctor.d(12): Error: a module constructor using `@standalone` must be `@system` or `@trusted`
6 fail_compilation/standalone_modctor.d(13): Error: a module constructor using `@standalone` must be `@system` or `@trusted`
7 ---
8 */
9 import core.attribute : standalone;
10
11 @standalone static this() {}
12 @standalone shared static this() {}
13 @standalone shared static this() @safe {}
14 @standalone shared static this() @trusted {}
15 @standalone shared static this() @system {}