[RISCV] Add RVVConstraint to SiFive custom matrix multiply instructions. (#124055)
[llvm-project.git] / compiler-rt / test / asan / TestCases / Posix / deep_call_stack.cpp
blob37aa7b11a231add6110fff0917bec30713179c1f
1 // Check that UAR mode can handle very deep recusrion.
2 // REQUIRES: shell
3 // RUN: %clangxx_asan -O2 %s -o %t
4 // RUN: ulimit -s 4096
5 // RUN: %env_asan_opts=detect_stack_use_after_return=1 %run %t 2>&1 | FileCheck %s
7 // Also check that use_sigaltstack+verbosity doesn't crash.
8 // RUN: %env_asan_opts=verbosity=1:use_sigaltstack=1:detect_stack_use_after_return=1 %run %t | FileCheck %s
10 // UNSUPPORTED: ios
12 #include <stdio.h>
14 __attribute__((noinline))
15 void RecursiveFunc(int depth, int *ptr) {
16 if ((depth % 1000) == 0)
17 printf("[%05d] ptr: %p\n", depth, ptr);
18 if (depth == 0)
19 return;
20 int local;
21 RecursiveFunc(depth - 1, &local);
24 int main(int argc, char **argv) {
25 RecursiveFunc(15000, 0);
26 return 0;
28 // CHECK: [15000] ptr:
29 // CHECK: [07000] ptr:
30 // CHECK: [00000] ptr: