Mercurial > projects > dstress
annotate 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 |
rev | line source |
---|---|
0 | 1 // @author@ Sam McCall <tunah@tunah.net> |
2 // @date@ 2004-07-27 | |
3 // @uri@ news://ce586c$212e$1@digitaldaemon.com | |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
1
diff
changeset
|
4 // @url@ nttp://digitalmars.com/digitalmars.D.bugs:1148 |
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
1
diff
changeset
|
5 |
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
1
diff
changeset
|
6 module dstress.run.typedef_03; |
0 | 7 |
8 public static final uint U = (cast(uint)(-1)) >>> 2; | |
9 | |
10 typedef uint myType; | |
11 public static final myType T = (cast(myType)(-1)) >>> 2; | |
12 | |
13 int main(){ | |
14 assert(U == 0x3FFFFFFF); | |
15 assert(T == 0x3FFFFFFF); | |
16 | |
17 return 0; | |
18 } |