aboutsummaryrefslogtreecommitdiff
path: root/example/recurse1.c
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-09-09 22:58:51 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-09-09 22:58:51 +0200
commitfe0c58e5fbaa37668779ec10d2761e6657b824f4 (patch)
tree9d13c3764887ec9b3751973d2e402b1e79830c76 /example/recurse1.c
downloadpreload-libbt-fe0c58e5fbaa37668779ec10d2761e6657b824f4.tar.gz
preload-libbt-fe0c58e5fbaa37668779ec10d2761e6657b824f4.zip
initial commit of libbt
Diffstat (limited to 'example/recurse1.c')
-rw-r--r--example/recurse1.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/example/recurse1.c b/example/recurse1.c
new file mode 100644
index 0000000..e5a86bc
--- /dev/null
+++ b/example/recurse1.c
@@ -0,0 +1,17 @@
+// Stack overflow on main thread.
+
+void qux();
+
+void foo() {
+ qux();
+}
+void bar() {
+ foo();
+}
+void qux() {
+ bar();
+}
+
+int main() {
+ foo();
+}