Changeset View
Changeset View
Standalone View
Standalone View
compiler-rt/test/msan/noundef_analysis.cpp
// RUN: %clangxx_msan %s -o %t && %run %t >%t.out 2>&1 | // RUN: %clangxx_msan %s -fno-sanitize-memory-param-retval -o %t && %run %t >%t.out 2>&1 | ||||
// RUN: FileCheck %s --check-prefix=MISSED --allow-empty < %t.out | // RUN: FileCheck %s --check-prefix=MISSED --allow-empty < %t.out | ||||
// RUN: %clangxx_msan %s -mllvm -msan-eager-checks=1 -o %t && not %run %t >%t.out 2>&1 | // RUN: %clangxx_msan %s -mllvm -msan-eager-checks=1 -fno-sanitize-memory-param-retval -o %t && not %run %t >%t.out 2>&1 | ||||
// RUN: FileCheck %s < %t.out | |||||
// RUN: %clangxx_msan %s -disable-noundef-analysis -fsanitize-memory-param-retval -o %t && not %run %t >%t.out 2>&1 | |||||
// RUN: FileCheck %s < %t.out | // RUN: FileCheck %s < %t.out | ||||
struct SimpleStruct { | struct SimpleStruct { | ||||
int md1; | int md1; | ||||
}; | }; | ||||
static int sink; | static int sink; | ||||
Show All 11 Lines |