1 | #include <stdio.h> |
---|---|
2 | |
3 | // This example is meant to recurse infinitely. |
4 | // The extra struct is just to make the frame dump |
5 | // more complicated. |
6 | |
7 | struct Foo { |
8 | int a; |
9 | int b; |
10 | char *c; |
11 | }; |
12 | |
13 | int |
14 | forgot_termination(int input, struct Foo my_foo) { |
15 | return forgot_termination(input: ++input, my_foo); |
16 | } |
17 | |
18 | int |
19 | main() |
20 | { |
21 | struct Foo myFoo = {100, 300, "A string you will print a lot"}; // Set a breakpoint here |
22 | return forgot_termination(input: 1, my_foo: myFoo); |
23 | } |
24 |