Changeset View
Changeset View
Standalone View
Standalone View
clang/test/CodeGen/kmsan-param-retval.c
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -no-enable-noundef-analysis -o - %s | \ | // RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -no-enable-noundef-analysis -o - %s | \ | ||||
// RUN: FileCheck %s --check-prefix=CLEAN | // RUN: FileCheck %s --check-prefix=CLEAN | ||||
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -o - %s | \ | // RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -fno-sanitize-memory-param-retval -o - %s | \ | ||||
// RUN: FileCheck %s --check-prefixes=NOUNDEF,NOUNDEF_ONLY | // RUN: FileCheck %s --check-prefixes=NOUNDEF,NOUNDEF_ONLY | ||||
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -mllvm -msan-eager-checks -o - %s | \ | // RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -mllvm -msan-eager-checks -o - %s | \ | ||||
// RUN: FileCheck %s --check-prefixes=NOUNDEF,EAGER | // RUN: FileCheck %s --check-prefixes=NOUNDEF,EAGER | ||||
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -no-enable-noundef-analysis -fsanitize-memory-param-retval -o - %s | \ | // RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -no-enable-noundef-analysis -fsanitize-memory-param-retval -o - %s | \ | ||||
// RUN: FileCheck %s --check-prefixes=CLEAN | // RUN: FileCheck %s --check-prefixes=CLEAN | ||||
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -fsanitize-memory-param-retval -o - %s | \ | // RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -o - %s | \ | ||||
// RUN: FileCheck %s --check-prefixes=NOUNDEF,EAGER | // RUN: FileCheck %s --check-prefixes=NOUNDEF,EAGER | ||||
void foo(); | void foo(); | ||||
void bar(int x) { | void bar(int x) { | ||||
if (x) | if (x) | ||||
foo(); | foo(); | ||||
} | } | ||||
Show All 19 Lines |