bolt/deps/llvm-18.1.8/lldb/test/API/functionalities/bt-interrupt/main.c

24 lines
436 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
#include <stdio.h>
// This example is meant to recurse infinitely.
// The extra struct is just to make the frame dump
// more complicated.
struct Foo {
int a;
int b;
char *c;
};
int
forgot_termination(int input, struct Foo my_foo) {
return forgot_termination(++input, my_foo);
}
int
main()
{
struct Foo myFoo = {100, 300, "A string you will print a lot"}; // Set a breakpoint here
return forgot_termination(1, myFoo);
}