summaryrefslogtreecommitdiffstats
path: root/testsuite/tests/runtime-errors/stackoverflow.ml
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/runtime-errors/stackoverflow.ml')
-rw-r--r--testsuite/tests/runtime-errors/stackoverflow.ml12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/runtime-errors/stackoverflow.ml b/testsuite/tests/runtime-errors/stackoverflow.ml
index ab53b8b06..21fe04bd2 100644
--- a/testsuite/tests/runtime-errors/stackoverflow.ml
+++ b/testsuite/tests/runtime-errors/stackoverflow.ml
@@ -1,3 +1,15 @@
+(***********************************************************************)
+(* *)
+(* OCaml *)
+(* *)
+(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
+(* *)
+(* Copyright 2001 Institut National de Recherche en Informatique et *)
+(* en Automatique. All rights reserved. This file is distributed *)
+(* under the terms of the Q Public License version 1.0. *)
+(* *)
+(***********************************************************************)
+
let rec f x =
if not (x = 0 || x = 10000 || x = 20000)
then 1 + f (x + 1)