Mercurial > projects > dstress
annotate run/typeid_65.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 | 0db095345640 |
children |
rev | line source |
---|---|
133 | 1 /* $HeadURL$ |
2 * $Date$ | |
3 * $Author$ | |
4 */ | |
5 | |
6 module dstress.run.typeid_65; | |
7 | |
8 int main(){ | |
9 TypeInfo ti = typeid(wchar[]); | |
10 assert(!(ti is null)); | |
535 | 11 assert(ti); |
342 | 12 assert(ti.tsize==(wchar[]).sizeof); |
334
c1ca2f37362b
added TypeInfo.toString checks to detect 'cheating'
thomask
parents:
133
diff
changeset
|
13 assert(ti.toString()=="wchar[]"); |
535 | 14 |
15 TypeInfo_Array ta = cast(TypeInfo_Array) ti; | |
16 assert(!(ta is null)); | |
17 assert(ta); | |
18 assert(ta.tsize==(wchar[]).sizeof); | |
19 assert(ta.toString()=="wchar[]"); | |
20 | |
133 | 21 return 0; |
22 } |