ca8db98fabed94bcfd01270a15835ceb61a1cf98
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.mi / basics.c
1 /*
2 * This simple program that passes different types of arguments
3 * on function calls. Useful to test printing frames, stepping, etc.
4 */
5
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 }
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
40
41
This page took 0.028902 seconds and 3 git commands to generate.