| 1 |
/* |
| 2 |
REQUIRED_ARGS: -Xf- -o- -version=Showme |
| 3 |
PERMUTE_ARGS: |
| 4 |
TEST_OUTPUT: |
| 5 |
---- |
| 6 |
[ |
| 7 |
{ |
| 8 |
"kind" : "module", |
| 9 |
"file" : "compilable$?:windows=\\|/$json20742.d", |
| 10 |
"members" : [ |
| 11 |
{ |
| 12 |
"name" : "X1", |
| 13 |
"kind" : "struct", |
| 14 |
"protection" : "private", |
| 15 |
"line" : 52, |
| 16 |
"char" : 13, |
| 17 |
"members" : [] |
| 18 |
}, |
| 19 |
{ |
| 20 |
"name" : "Y2", |
| 21 |
"kind" : "struct", |
| 22 |
"protection" : "private", |
| 23 |
"line" : 59, |
| 24 |
"char" : 13, |
| 25 |
"members" : [] |
| 26 |
}, |
| 27 |
{ |
| 28 |
"name" : "A1", |
| 29 |
"kind" : "struct", |
| 30 |
"protection" : "private", |
| 31 |
"line" : 62, |
| 32 |
"char" : 13, |
| 33 |
"members" : [] |
| 34 |
}, |
| 35 |
{ |
| 36 |
"name" : "B2", |
| 37 |
"kind" : "struct", |
| 38 |
"protection" : "private", |
| 39 |
"line" : 69, |
| 40 |
"char" : 13, |
| 41 |
"members" : [] |
| 42 |
} |
| 43 |
] |
| 44 |
} |
| 45 |
] |
| 46 |
---- |
| 47 |
|
| 48 |
https://issues.dlang.org/show_bug.cgi?id=20742 |
| 49 |
*/ |
| 50 |
|
| 51 |
version(Showme) |
| 52 |
private struct X1 {} |
| 53 |
else |
| 54 |
private struct X2 {} |
| 55 |
|
| 56 |
version(Hideme) |
| 57 |
private struct Y1 {} |
| 58 |
else |
| 59 |
private struct Y2 {} |
| 60 |
|
| 61 |
static if (true) |
| 62 |
private struct A1 {} |
| 63 |
else |
| 64 |
private struct A2 {} |
| 65 |
|
| 66 |
static if (false) |
| 67 |
private struct B1 {} |
| 68 |
else |
| 69 |
private struct B2 {} |