mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-04 02:02:22 +00:00
25 lines
324 B
C
25 lines
324 B
C
/* This program is used to test the "jump" command. There's nothing
|
|
particularly deep about the functionality nor names in here.
|
|
*/
|
|
|
|
#ifdef PROTOTYPES
|
|
static int square (int x)
|
|
#else
|
|
static int square (x)
|
|
int x;
|
|
#endif
|
|
{
|
|
return x*x;
|
|
}
|
|
|
|
|
|
int main ()
|
|
{
|
|
int i = 99;
|
|
|
|
i++;
|
|
i = square (i);
|
|
i--;
|
|
return 0;
|
|
}
|