1 // Test that leaks detected after forking without exec().
2 // RUN: %clangxx_lsan %s -o %t && not %run %t 2>&1 | FileCheck %s
4 /// Fails on clang-cmake-aarch64-full (glibc 2.27-3ubuntu1.4).
5 // UNSUPPORTED: aarch64
17 waitpid(pid
, &status
, 0);
18 assert(WIFEXITED(status
));
19 return WEXITSTATUS(status
);
21 for (int i
= 0; i
< 10; ++i
)
23 // CHECK: LeakSanitizer: detected memory leaks