xref: /llvm-project/compiler-rt/test/fuzzer/msan.test (revision 8a86860207f0d5c794a2b8c0b384001710e5d036)
1REQUIRES: msan
2UNSUPPORTED: target=arm{{.*}}
3RUN: %msan_compiler %S/SimpleTestStdio.cpp -o %t
4RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=NO-REPORT
5
6RUN: %msan_compiler %S/SimpleCmpTest.cpp -o %t
7RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=NO-REPORT
8
9RUN: %msan_compiler %S/MemcmpTest.cpp -o %t
10RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=NO-REPORT
11
12RUN: %msan_compiler %S/StrcmpTest.cpp -o %t
13RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=NO-REPORT
14
15NO-REPORT-NOT: MemorySanitizer
16NO-REPORT: BINGO
17
18
19RUN: %msan_compiler %S/UseAfterDtor.cpp -o %t
20RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=REPORT
21
22RUN: %msan_compiler %S/UninitializedStrlen.cpp -o %t
23RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=REPORT
24
25REPORT: MemorySanitizer: use-of-uninitialized-value
26