1REQUIRES: msan
2RUN: %msan_compiler %S/SimpleTestStdio.cpp -o %t
3RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=NO-REPORT
4
5RUN: %msan_compiler %S/SimpleCmpTest.cpp -o %t
6RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=NO-REPORT
7
8RUN: %msan_compiler %S/MemcmpTest.cpp -o %t
9RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=NO-REPORT
10
11RUN: %msan_compiler %S/StrcmpTest.cpp -o %t
12RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=NO-REPORT
13
14NO-REPORT-NOT: MemorySanitizer
15NO-REPORT: BINGO
16
17
18RUN: %msan_compiler %S/UseAfterDtor.cpp -o %t
19RUN: MSAN_OPTIONS=poison_in_dtor=1 not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=REPORT
20
21RUN: %msan_compiler %S/UninitializedStrlen.cpp -o %t
22RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=REPORT
23
24REPORT: MemorySanitizer: use-of-uninitialized-value
25