Mercurial > projects > dstress
annotate run/version_04.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
parents | 785c8eaa48b4 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.version_04; | |
0 | 6 |
7 int main(){ | |
8 int cpu=0; | |
9 | |
10 version(X86){ | |
11 cpu++; | |
12 } | |
13 | |
394 | 14 version(X86_64){ |
0 | 15 cpu++; |
16 } | |
17 | |
192 | 18 version(IA64){ |
552 | 19 static assert(0); // this isn't yet part of the standard (v0.124) |
192 | 20 } |
21 | |
22 version(PPC){ | |
552 | 23 static assert(0); // this isn't yet part of the standard (v0.124) |
192 | 24 } |
25 | |
274
21efb6c131f1
updated defencive versions tests for not yet documented versions "Sparc" and "solaris"
thomask
parents:
192
diff
changeset
|
26 version(Sparc){ |
552 | 27 static 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:
192
diff
changeset
|
28 } |
21efb6c131f1
updated defencive versions tests for not yet documented versions "Sparc" and "solaris"
thomask
parents:
192
diff
changeset
|
29 |
1126 | 30 if(cpu != 1){ |
31 assert(0); | |
32 } | |
0 | 33 |
34 return 0; | |
1 | 35 } |