annotate run/typeid_61.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 9e0847cf535a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
133
f4e9069c7993 extended typeid/TypeInfo tests
thomask
parents:
diff changeset
1 /* $HeadURL$
f4e9069c7993 extended typeid/TypeInfo tests
thomask
parents:
diff changeset
2 * $Date$
f4e9069c7993 extended typeid/TypeInfo tests
thomask
parents:
diff changeset
3 * $Author$
f4e9069c7993 extended typeid/TypeInfo tests
thomask
parents:
diff changeset
4 */
f4e9069c7993 extended typeid/TypeInfo tests
thomask
parents:
diff changeset
5
f4e9069c7993 extended typeid/TypeInfo tests
thomask
parents:
diff changeset
6 module dstress.run.typeid_61;
f4e9069c7993 extended typeid/TypeInfo tests
thomask
parents:
diff changeset
7
f4e9069c7993 extended typeid/TypeInfo tests
thomask
parents:
diff changeset
8 int main(){
f4e9069c7993 extended typeid/TypeInfo tests
thomask
parents:
diff changeset
9 TypeInfo ti = typeid(char);
f4e9069c7993 extended typeid/TypeInfo tests
thomask
parents:
diff changeset
10 assert(!(ti is null));
528
9e0847cf535a pre DMD-0.123 review
thomask
parents: 342
diff changeset
11 assert(ti.tsize==(char).sizeof);
334
c1ca2f37362b added TypeInfo.toString checks to detect 'cheating'
thomask
parents: 133
diff changeset
12 assert(ti.toString()=="char");
133
f4e9069c7993 extended typeid/TypeInfo tests
thomask
parents:
diff changeset
13 return 0;
f4e9069c7993 extended typeid/TypeInfo tests
thomask
parents:
diff changeset
14 }