Mercurial > projects > dstress
annotate run/version_02.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | 785c8eaa48b4 |
children |
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){ | |
1126 | 27 static assert(0); // this isn't yet part of the standard (v 0.166) |
192 | 28 } |
29 | |
30 version(Unix){ | |
1126 | 31 static assert(0); // this isn't yet part of the standard (v 0.166) |
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){ |
1126 | 35 static assert(0); // this isn't yet part of the standard (v 0.166) |
0 | 36 } |
37 | |
1126 | 38 if(os != 1){ |
39 assert(0); | |
40 } | |
0 | 41 |
42 return 0; | |
1 | 43 } |