Mercurial > projects > dstress
annotate run/typeid_15.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
parents | 111c6744074d |
children |
rev | line source |
---|---|
129 | 1 /* $HeadURL$ |
2 * $Date$ | |
3 * $Author$ | |
4 */ | |
5 | |
6 module dstress.run.typeid_15; | |
7 | |
8 int main(){ | |
9 TypeInfo ti = typeid(void*); | |
10 assert(!(ti is null)); | |
342 | 11 assert(ti.tsize==(void*).sizeof); |
334
c1ca2f37362b
added TypeInfo.toString checks to detect 'cheating'
thomask
parents:
129
diff
changeset
|
12 assert(ti.toString()=="void*"); |
129 | 13 return 0; |
14 } |