diff options
Diffstat (limited to 'test/CodeGen/cfi-check-fail2.c')
-rw-r--r-- | test/CodeGen/cfi-check-fail2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/cfi-check-fail2.c b/test/CodeGen/cfi-check-fail2.c index 5340871c2ebec..9c4d0ac2ea36b 100644 --- a/test/CodeGen/cfi-check-fail2.c +++ b/test/CodeGen/cfi-check-fail2.c @@ -3,6 +3,12 @@ // RUN: -fsanitize=cfi-vcall \ // RUN: -emit-llvm -o - %s | FileCheck %s +// Check that blacklist does not affect generated code. +// RUN: echo "src:*" > %t-all.blacklist +// RUN: %clang_cc1 -triple x86_64-unknown-linux -O0 -fsanitize-cfi-cross-dso \ +// RUN: -fsanitize=cfi-vcall -fsanitize-blacklist=%t-all.blacklist \ +// RUN: -emit-llvm -o - %s | FileCheck %s + void caller(void (*f)()) { f(); } |