1 // RUN: %clangxx_msan -O0 -g %s -o %t
2 // RUN: not %run %t 2>&1 | FileCheck %s
3 // RUN: MSAN_OPTIONS=intercept_memcmp=0 %run %t
7 int main(int argc
, char **argv
) {
10 for (int i
= 0; i
< argc
* 3; i
++)
12 int res
= memcmp(a1
, a2
, 4);
16 // CHECK: Uninitialized bytes in MemcmpInterceptorCommon at offset 3
17 // CHECK: MemorySanitizer: use-of-uninitialized-value