mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
23 lines
344 B
D
23 lines
344 B
D
// EXTRA_FILES: imports/a14992.d
|
|
import imports.a14992; // do not link
|
|
|
|
int test()
|
|
{
|
|
S1 v1; // OK
|
|
S1* p1; // OK
|
|
S1[] da1; // OK
|
|
S1[2] a1; // OK <- NG
|
|
|
|
S2 v2; // OK
|
|
S2* p2; // OK
|
|
S2[] da2; // OK
|
|
S2[2] a2; // OK <- NG
|
|
|
|
return 1;
|
|
}
|
|
static assert(test());
|
|
|
|
void main()
|
|
{
|
|
test();
|
|
}
|