1 // MSAN re-execs on unlimited stacks. We use that to verify ReExec() uses the
3 // RUN: %clangxx_msan -O0 %s -o %t && ulimit -s unlimited && %run %t | FileCheck %s
7 #if !defined(__GLIBC_PREREQ)
8 #define __GLIBC_PREREQ(a, b) 0
11 #if __GLIBC_PREREQ(2, 16)
16 #if __GLIBC_PREREQ(2, 16)
17 // Make sure AT_EXECFN didn't get overwritten by re-exec.
18 puts(reinterpret_cast<const char *>(getauxval(AT_EXECFN
)));
22 // CHECK-NOT: /proc/self/exe