gcc/testsuite/gdc.test/fail_compilation/fail23439.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=23439 |
| 2 | // PERMUTE_ARGS: -lowmem |
| 3 | /* TEST_OUTPUT: |
| 4 | --- |
| 5 | fail_compilation/fail23439.d(13): Error: variable `fail23439.ice23439` is a thread-local class and cannot have a static initializer. Use `static this()` to initialize instead. |
| 6 | --- |
| 7 | */ |
| 8 | class C23439 |
| 9 | { |
| 10 | noreturn f23439; |
| 11 | } |
| 12 | |
| 13 | static ice23439 = new C23439(); |