1 // RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
3 // Test the time() interceptor.
5 // FIXME: There's no interceptor for time() on Windows yet.
6 // XFAIL: target={{.*windows-(msvc.*|gnu)}}
13 time_t *tm
= (time_t*)malloc(sizeof(time_t));
16 printf("Time: %s\n", ctime(&t
));
17 // CHECK: use-after-free
18 // Regression check for
19 // https://code.google.com/p/address-sanitizer/issues/detail?id=321