annotate run/return_01.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 40336fe41235
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
188
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
1 // $HeadURL$
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
2 // $Date$
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
3 // $Author$
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
4
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
5 module dstress.run.return_01;
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
6
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
7 int dummyJob;
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
8 int dummy(){
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
9 return ++dummyJob;
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
10 }
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
11
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
12 void test(){
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
13 return dummy();
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
14 }
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
15
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
16 int main(){
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
17 test();
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
18 return dummyJob-1;
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
19 }