mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
11 lines
350 B
D
11 lines
350 B
D
// https://issues.dlang.org/show_bug.cgi?id=21314
|
|
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail21314.d(10): Error: variable `fail21314.C21314.c21314` cannot have `extern(C++)` linkage because it is `static`
|
|
fail_compilation/fail21314.d(10): perhaps declare it as `__gshared` instead
|
|
---
|
|
*/
|
|
extern(C++) class C21314
|
|
{
|
|
static C21314[] c21314;
|
|
}
|