annotate run/overload_10.d @ 78:f027da128dd8

tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
author thomask
date Fri, 29 Oct 2004 05:48:49 +0000
parents
children 24da167d3f07
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
78
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
1 // @author@ tetsuya <tetsuya_member@pathlink.com>
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
2 // @dateq@ 2004-10-16
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
3 // @uri@ news://ckrq8e$1cnl$1@digitaldaemon.com
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
4 // @url@ nttp://digitalmars.com/digitalmars.D.bugs:2121
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
5
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
6 module dstress.run.overload_10;
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
7
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
8 int test(real a, real b){
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
9 assert(0);
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
10 return 1;
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
11 }
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
12
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
13 int test(real a, int b){
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
14 assert(0);
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
15 return 2;
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
16 }
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
17
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
18 int test(real a, uint b){
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
19 return 3;
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
20 }
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
21
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
22 int main(){
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
23 assert(test(5.0, cast(uint)(6))==3);
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
24 return 0;
f027da128dd8 tetsuya <tetsuya_member@pathlink.com> / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121
thomask
parents:
diff changeset
25 }