annotate run/o/opCall_02_C.d @ 1596:9bd08b3d5299

Fixed extra brackets in opCall_02_C. See D bug 135.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:42:11 +0200
parents 81222734adf3
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_C;
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
10
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
11 class X{
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
12 static int opCall(){
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
13 return 3;
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
14 }
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
15 }
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
16
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
17 int main(){
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
18 X x;
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 1049
diff changeset
19
1596
9bd08b3d5299 Fixed extra brackets in opCall_02_C. See D bug 135.
Christian Kamm <kamm incasoftware de>
parents: 1319
diff changeset
20 if(typeof(x)() != 3){
1049
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
21 assert(0);
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
22 }
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
23
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
24 return 0;
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
25 }
32c1be40d218 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
26