Mercurial > projects > dstress
annotate run/version_02.d @ 247:3bc2f45a191f
disabled unoffical version identifiers "Unix" and "darwin"
author | thomask |
---|---|
date | Mon, 24 Jan 2005 20:07:40 +0000 |
parents | 014844597bbd |
children | 21efb6c131f1 |
rev | line source |
---|---|
247
3bc2f45a191f
disabled unoffical version identifiers "Unix" and "darwin"
thomask
parents:
192
diff
changeset
|
1 module dstress.run.version_02; |
0 | 2 |
3 int main(){ | |
4 int os; | |
5 | |
6 version(Win32){ | |
7 os+=2; | |
8 } | |
9 | |
10 version(Win64){ | |
11 os+=2; | |
12 } | |
13 | |
14 version(Windows){ | |
15 os--; | |
16 } | |
17 | |
18 version(linux){ | |
247
3bc2f45a191f
disabled unoffical version identifiers "Unix" and "darwin"
thomask
parents:
192
diff
changeset
|
19 os++; |
192 | 20 } |
21 | |
22 version(darwin){ | |
247
3bc2f45a191f
disabled unoffical version identifiers "Unix" and "darwin"
thomask
parents:
192
diff
changeset
|
23 os+=99; // this isn't part of the standard (v0.111) |
192 | 24 } |
25 | |
26 version(Unix){ | |
247
3bc2f45a191f
disabled unoffical version identifiers "Unix" and "darwin"
thomask
parents:
192
diff
changeset
|
27 os+=99; // this isn't part of the standard (v0.111) |
0 | 28 } |
29 | |
30 assert(os == 1); | |
31 | |
32 return 0; | |
1 | 33 } |