Apparently, PTHREAD_STACK_MIN can be in limits.h on some systems...
authorKuba Mracek <mracek@apple.com>
Sat, 18 Mar 2017 22:01:33 +0000 (22:01 +0000)
committerKuba Mracek <mracek@apple.com>
Sat, 18 Mar 2017 22:01:33 +0000 (22:01 +0000)
llvm-svn: 298196

compiler-rt/test/asan/TestCases/Posix/stack-use-after-return.cc

index a0f7471..b67707a 100644 (file)
@@ -14,6 +14,7 @@
 // RUN: %env_asan_opts=detect_stack_use_after_return=1:max_uar_stack_size_log=20:verbosity=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-20 %s
 // RUN: %env_asan_opts=detect_stack_use_after_return=1:min_uar_stack_size_log=24:max_uar_stack_size_log=24:verbosity=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-24 %s
 
+#include <limits.h>
 #include <pthread.h>
 #include <stdio.h>
 #include <stdlib.h>