diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Feature/StackOverflow.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Feature/StackOverflow.c b/test/Feature/StackOverflow.c new file mode 100644 index 00000000..837d3db8 --- /dev/null +++ b/test/Feature/StackOverflow.c @@ -0,0 +1,16 @@ +// RUN: %llvmgcc -emit-llvm -g -c -o %t.bc %s +// RUN: rm -rf %t.klee-out +// RUN: %klee --output-dir=%t.klee-out %t.bc > %t.output.log 2>&1 +// RUN: FileCheck -input-file=%t.output.log %s + +void recursive(unsigned nr){ + if (nr == 0) + return; + recursive(nr-1); +} + +int main() { + recursive(10000); + return 0; +} +// CHECK: Maximum stack size reached |