annotate nocompile/overload_11.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents 774e02c900da
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
231
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
1 // $HeadURL$
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
2 // $Date$
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
3 // $Author$
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
4
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
5 // @author@ tetsuya <tetsuya_member@pathlink.com>
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
6 // @date@ 2004-10-16
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
7 // @uri@ news:ckrq8e$1cnl$1@digitaldaemon.com
1485
774e02c900da changed nntp: URLs to http: URLs
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2121
231
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
9
374
f87ba6507260 added missing meta-data
thomask
parents: 231
diff changeset
10 // __DSTRESS_ELINE__ 30
f87ba6507260 added missing meta-data
thomask
parents: 231
diff changeset
11
231
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
12 module dstress.nocompile.overload_11;
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
13
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
14 int test(real a, real b){
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
15 assert(0);
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
16 return 1;
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
17 }
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
18
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
19 int test(real a, int b){
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
20 assert(0);
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
21 return 2;
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
22 }
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
23
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
24 int test(real a, uint b){
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
25 return 3;
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
26 }
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
27
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
28 int main(){
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
29 uint uInt = 6;
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
30 assert(test(5.0, uInt)==3);
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
31 return 0;
a332eed5d52c fixed location of overload_11 and overload_12
thomask
parents:
diff changeset
32 }