annotate run/typeid_73.d @ 435:ec6d35cccfb5
pre dmd-0.121 review
Walter <walter@digitalmars.com>
2005-04-15
mail:000e01c54203$22c0e850$0200a8c0@colossus
author |
thomask |
date |
Sat, 16 Apr 2005 08:18:57 +0000 |
parents |
111c6744074d |
children |
|
rev |
line source |
133
|
1 /* $HeadURL$
|
|
2 * $Date$
|
|
3 * $Author$
|
|
4 */
|
|
5
|
|
6 module dstress.run.typeid_73;
|
|
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_73.MyClass");
|
133
|
17 return 0;
|
|
18 }
|