annotate run/typeid_15.d @ 334:c1ca2f37362b

added TypeInfo.toString checks to detect 'cheating'
author thomask
date Fri, 18 Mar 2005 11:35:53 +0000
parents 97952bc2ca81
children 111c6744074d
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_15;
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
7
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
8 int main(){
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
9 TypeInfo ti = typeid(void*);
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
10 assert(!(ti is null));
334
c1ca2f37362b added TypeInfo.toString checks to detect 'cheating'
thomask
parents: 129
diff changeset
11 assert(ti.toString()=="void*");
129
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
12 return 0;
97952bc2ca81 extended typeid tests
thomask
parents:
diff changeset
13 }