Commit | Line | Data |
---|---|---|
fb40c209 AC |
1 | /* |
2 | * This simple program that passes different types of arguments | |
3 | * on function calls. Useful to test printing frames, stepping, etc. | |
4 | */ | |
5 | ||
19e08fb3 | 6 | int callee4 (void) |
fb40c209 AC |
7 | { |
8 | int A=1; | |
9 | int B=2; | |
10 | int C; | |
11 | ||
12 | C = A + B; | |
19e08fb3 | 13 | return 0; |
fb40c209 | 14 | } |
fb40c209 AC |
15 | callee3 (char *strarg) |
16 | { | |
17 | callee4 (); | |
18 | } | |
19 | ||
20 | callee2 (int intarg, char *strarg) | |
21 | { | |
22 | callee3 (strarg); | |
23 | } | |
24 | ||
25 | callee1 (int intarg, char *strarg, double fltarg) | |
26 | { | |
27 | callee2 (intarg, strarg); | |
28 | } | |
29 | ||
30 | main () | |
31 | { | |
32 | callee1 (2, "A string argument.", 3.5); | |
33 | callee1 (2, "A string argument.", 3.5); | |
34 | ||
35 | printf ("Hello, World!"); | |
36 | ||
37 | return 0; | |
38 | } | |
39 | ||
d909a056 AC |
40 | /* |
41 | Local variables: | |
42 | change-log-default-name: "ChangeLog-mi" | |
43 | End: | |
44 | */ | |
fb40c209 | 45 |