Changeset View
Changeset View
Standalone View
Standalone View
compiler-rt/test/msan/no_sanitize_memory_prop.cpp
// RUN: %clangxx_msan -O0 %s -o %t && %run %t >%t.out 2>&1 | // RUN: %clangxx_msan -fno-sanitize-memory-param-retval -O0 %s -o %t && %run %t >%t.out 2>&1 | ||||
// RUN: %clangxx_msan -O1 %s -o %t && %run %t >%t.out 2>&1 | // RUN: %clangxx_msan -fno-sanitize-memory-param-retval -O1 %s -o %t && %run %t >%t.out 2>&1 | ||||
// RUN: %clangxx_msan -O2 %s -o %t && %run %t >%t.out 2>&1 | // RUN: %clangxx_msan -fno-sanitize-memory-param-retval -O2 %s -o %t && %run %t >%t.out 2>&1 | ||||
// RUN: %clangxx_msan -O3 %s -o %t && %run %t >%t.out 2>&1 | // RUN: %clangxx_msan -fno-sanitize-memory-param-retval -O3 %s -o %t && %run %t >%t.out 2>&1 | ||||
// Test that (no_sanitize_memory) functions DO NOT propagate shadow. | // Test that (no_sanitize_memory) functions DO NOT propagate shadow. | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
__attribute__((noinline)) | __attribute__((noinline)) | ||||
__attribute__((weak)) | __attribute__((weak)) | ||||
Show All 13 Lines |