annotate run/o/opCall_02_E.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 9dcac8d4e97f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1049
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
1 // $HeadURL$
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
2 // $Date$
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
3 // $Author$
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
4
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
5 // @author@ <oskar.linde@gmail.com>
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
6 // @date@ 2006-05-11
1319
81222734adf3 sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 1091
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=135
1049
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
8
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
9 module dstress.run.o.opCall_02_E;
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
10
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
11 template T(_T){
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
12 alias _T T;
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
13 }
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
14
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
15 class X{
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
16 static int opCall(){
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
17 return 3;
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
18 }
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
19 }
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
20
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
21 int main(){
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
22 X x;
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 1049
diff changeset
23
1049
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
24 if(T!(typeof(x))() != 3){
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
25 assert(0);
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
26 }
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
27
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
28 return 0;
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
29 }
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
30