annotate run/typeid_74.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 |
ec6d35cccfb5 |
children |
|
rev |
line source |
133
|
1 /* $HeadURL$
|
|
2 * $Date$
|
|
3 * $Author$
|
|
4 */
|
|
5
|
|
6 module dstress.run.typeid_74;
|
|
7
|
|
8 struct MyClass{
|
|
9 int dummy;
|
|
10 }
|
|
11
|
|
12 int main(){
|
|
13 TypeInfo ti = typeid(MyClass*);
|
|
14 assert(!(ti is null));
|
342
|
15 assert(ti.tsize==(MyClass*).sizeof);
|
435
|
16 assert(ti.toString()=="dstress.run.typeid_74.MyClass*");
|
133
|
17 return 0;
|
|
18 }
|