about summary refs log tree commit diff homepage
path: root/test/Feature/StackOverflow.c
blob: 837d3db86ed70c5c8eb12f4317127155f17d01e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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