Mercurial > projects > dstress
annotate run/version_02.d @ 552:a9a4ec32f7a0
updated version/debug handling to DMD-0.124
author | thomask |
---|---|
date | Fri, 20 May 2005 11:06:55 +0000 |
parents | f87ba6507260 |
children | 785c8eaa48b4 |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
247
3bc2f45a191f
disabled unoffical version identifiers "Unix" and "darwin"
thomask
parents:
192
diff
changeset
|
5 module dstress.run.version_02; |
0 | 6 |
7 int main(){ | |
8 int os; | |
9 | |
10 version(Win32){ | |
11 os+=2; | |
12 } | |
13 | |
14 version(Win64){ | |
15 os+=2; | |
16 } | |
17 | |
18 version(Windows){ | |
19 os--; | |
20 } | |
21 | |
22 version(linux){ | |
247
3bc2f45a191f
disabled unoffical version identifiers "Unix" and "darwin"
thomask
parents:
192
diff
changeset
|
23 os++; |
192 | 24 } |
25 | |
26 version(darwin){ | |
552 | 27 assert(0); // this isn't yet part of the standard (v0.124) |
192 | 28 } |
29 | |
30 version(Unix){ | |
552 | 31 assert(0); // this isn't yet part of the standard (v0.124) |
274
21efb6c131f1
updated defencive versions tests for not yet documented versions "Sparc" and "solaris"
thomask
parents:
247
diff
changeset
|
32 } |
21efb6c131f1
updated defencive versions tests for not yet documented versions "Sparc" and "solaris"
thomask
parents:
247
diff
changeset
|
33 |
21efb6c131f1
updated defencive versions tests for not yet documented versions "Sparc" and "solaris"
thomask
parents:
247
diff
changeset
|
34 version(solaris){ |
552 | 35 assert(0); // this isn't yet part of the standard (v0.124) |
0 | 36 } |
37 | |
38 assert(os == 1); | |
39 | |
40 return 0; | |
1 | 41 } |