Mercurial > projects > dstress
annotate run/typeid_45.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 | 111c6744074d |
children |
rev | line source |
---|---|
133 | 1 /* $HeadURL$ |
2 * $Date$ | |
3 * $Author$ | |
4 */ | |
5 | |
6 module dstress.run.typeid_45; | |
7 | |
8 int main(){ | |
9 TypeInfo ti = typeid(double); | |
10 assert(!(ti is null)); | |
342 | 11 assert(ti.tsize==(double).sizeof); |
334
c1ca2f37362b
added TypeInfo.toString checks to detect 'cheating'
thomask
parents:
133
diff
changeset
|
12 assert(ti.toString()=="double"); |
133 | 13 return 0; |
14 } |