annotate run/typeid_18.d @ 1619:bebc7472a832

Fix #7.
author Christian Kamm <kamm incasoftware de>
date Sat, 07 Nov 2009 18:55:30 +0100
parents 38ea1bb385b6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
129
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
1 /* $HeadURL$
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
2 * $Date$
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
3 * $Author$
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
4 */
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
5
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
6 module dstress.run.typeid_18;
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
7
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
8 int main(){
870
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 342
diff changeset
9 TypeInfo ti = typeid(bool*);
129
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
10 assert(!(ti is null));
870
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 342
diff changeset
11 assert(ti.tsize==(bool*).sizeof);
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 342
diff changeset
12 assert(ti.toString()=="bool*");
129
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
13 return 0;
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
14 }