gcc/testsuite/gdc.test/fail_compilation/fail21314.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=21314 |
| 2 | /* TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail21314.d(10): Error: variable `fail21314.C21314.c21314` cannot have `extern(C++)` linkage because it is `static` |
| 5 | fail_compilation/fail21314.d(10): perhaps declare it as `__gshared` instead |
| 6 | --- |
| 7 | */ |
| 8 | extern(C++) class C21314 |
| 9 | { |
| 10 | static C21314[] c21314; |
| 11 | } |