[libFuzzer] fix the stack-depth initialization, add a lit test for DeepRecursionTest.cpp 

llvm-svn: 311421
diff --git a/compiler-rt/test/fuzzer/deep-recursion.test b/compiler-rt/test/fuzzer/deep-recursion.test
new file mode 100644
index 0000000..23b7af1
--- /dev/null
+++ b/compiler-rt/test/fuzzer/deep-recursion.test
@@ -0,0 +1,4 @@
+# Test that we can find a stack overflow
+RUN: %cpp_compiler -fsanitize-coverage=stack-depth %S/DeepRecursionTest.cpp -o %t
+RUN: not %t -seed=1 -runs=100000000 2>&1 | FileCheck %s
+CHECK: ERROR: libFuzzer: deadly signal