Mercurial > projects > dstress
view run/typedef_03.d @ 70:5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
2) updated todo
author | thomask |
---|---|
date | Sat, 23 Oct 2004 22:47:47 +0000 |
parents | 3414705c41ac |
children | a33ad7189d21 |
line wrap: on
line source
// @author@ Sam McCall <tunah@tunah.net> // @date@ 2004-07-27 // @uri@ news://ce586c$212e$1@digitaldaemon.com // @url@ nttp://digitalmars.com/digitalmars.D.bugs:1148 module dstress.run.typedef_03; public static final uint U = (cast(uint)(-1)) >>> 2; typedef uint myType; public static final myType T = (cast(myType)(-1)) >>> 2; int main(){ assert(U == 0x3FFFFFFF); assert(T == 0x3FFFFFFF); return 0; }