Commit | Line | Data |
---|---|---|
ef44eed1 SS |
1 | /* Test "return" command. */ |
2 | ||
3 | func1 () | |
4 | { | |
5 | printf("in func1\n"); | |
6 | } | |
7 | ||
8 | int | |
9 | func2 () | |
10 | { | |
11 | return -5; | |
12 | } | |
13 | ||
14 | double | |
15 | func3 () | |
16 | { | |
17 | return -5.0; | |
18 | } | |
19 | ||
20 | main () | |
21 | { | |
22 | func1 (); | |
23 | printf("in main after func1\n"); | |
24 | printf("func2 = %d\n", func2 ()); | |
25 | printf("func3 = %f\n", func3 ()); | |
26 | } |