1 /*
2 * This simple program that passes different types of arguments
3 * on function calls. Useful to test printing frames, stepping, etc.
4 */
5
callee4(void)6 int callee4 (void)
7 {
8 int A=1;
9 int B=2;
10 int C;
11
12 C = A + B;
13 return 0;
14 }
callee3(char * strarg)15 callee3 (char *strarg)
16 {
17 callee4 ();
18 }
19
callee2(int intarg,char * strarg)20 callee2 (int intarg, char *strarg)
21 {
22 callee3 (strarg);
23 }
24
callee1(int intarg,char * strarg,double fltarg)25 callee1 (int intarg, char *strarg, double fltarg)
26 {
27 callee2 (intarg, strarg);
28 }
29
main()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
40 /*
41 Local variables:
42 change-log-default-name: "ChangeLog-mi"
43 End:
44 */
45
46