1 // RUN: %clangxx_asan %s -o %t
3 // Set verbosity to 1 so that the log files are opened prior to fork().
4 // RUN: %env_asan_opts=log_path='"%t.log"':verbosity=1 not %run %t 2> %t.out
5 // RUN: for f in %t.log.* ; do FileCheck %s < $f; done
6 // RUN: [ `ls %t.log.* | wc -l` == 2 ]
12 int main(int argc, char **argv) {
15 if (fork() == -1) return 1;
16 // There are two processes at this point, thus there should be two distinct
22 // CHECK: ERROR: AddressSanitizer