aboutsummaryrefslogtreecommitdiff
path: root/example/recurse1.c
diff options
context:
space:
mode:
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();
+}