annotate run/t/typeof_09_H.d @ 1319:81222734adf3

sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
author thomask
date Sun, 31 Dec 2006 19:58:06 +0000
parents d3f836c7c9e6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
918
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
1 // $HeadURL$
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
2 // $Date$
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
3 // $Author$
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
4
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
5 // @author@ <oskar.linde@gmail.com>
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
6 // @date@ 2006-03-16
1319
81222734adf3 sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 918
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=54
918
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
8
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
9 module dstress.run.t.typeof_09_H;
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
10
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
11 typedef int MyInt = 4;
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
12
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
13 typeof((new MyInt[1])[0]) y;
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
14
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
15 int main(){
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
16 static if(!is(typeof(y) == MyInt)){
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
17 static assert(0);
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
18 }
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
19
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
20 if(y != cast(MyInt)4){
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
21 assert(0);
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
22 }
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
23
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
24 return 0;
d3f836c7c9e6 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
25 }