summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend
diff options
context:
space:
mode:
authorJan Korous <jkorous@apple.com>2019-11-08 14:16:15 -0800
committerJan Korous <jkorous@apple.com>2019-11-08 14:28:30 -0800
commitd52cff88367df4d6bc57949d5e8a61aec0c301e8 (patch)
tree52021dbddd0aee0913313353310e8c78cf2fbae3 /clang/test/Frontend
parent4c44fd3de374fdce383ca1b0313b2418d1f1d370 (diff)
downloadbcm5719-llvm-d52cff88367df4d6bc57949d5e8a61aec0c301e8.tar.gz
bcm5719-llvm-d52cff88367df4d6bc57949d5e8a61aec0c301e8.zip
Revert "Reland "[clang] Report sanitizer blacklist as a dependency in cc1""
This reverts commit cae4a28864f4e8a55920e2b94e2cd43617902dec.
Diffstat (limited to 'clang/test/Frontend')
-rw-r--r--clang/test/Frontend/dependency-gen.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/Frontend/dependency-gen.c b/clang/test/Frontend/dependency-gen.c
index 963419cb118..1db9b04c1d9 100644
--- a/clang/test/Frontend/dependency-gen.c
+++ b/clang/test/Frontend/dependency-gen.c
@@ -27,3 +27,20 @@
#ifndef INCLUDE_FLAG_TEST
#include <x.h>
#endif
+
+// RUN: echo "fun:foo" > %t.blacklist1
+// RUN: echo "fun:foo" > %t.blacklist2
+// RUN: %clang -MD -MF - %s -fsyntax-only -resource-dir=%S/Inputs/resource_dir_with_cfi_blacklist -fsanitize=cfi-vcall -flto -fvisibility=hidden -fsanitize-blacklist=%t.blacklist1 -fsanitize-blacklist=%t.blacklist2 -I ./ | FileCheck -check-prefix=TWO-BLACK-LISTS %s
+// TWO-BLACK-LISTS: dependency-gen.o:
+// TWO-BLACK-LISTS-DAG: blacklist1
+// TWO-BLACK-LISTS-DAG: blacklist2
+// TWO-BLACK-LISTS-DAG: x.h
+// TWO-BLACK-LISTS-DAG: dependency-gen.c
+
+// RUN: %clang -MD -MF - %s -fsyntax-only -resource-dir=%S/Inputs/resource_dir_with_cfi_blacklist -fsanitize=cfi-vcall -flto -fvisibility=hidden -I ./ | FileCheck -check-prefix=USER-AND-SYS-DEPS %s
+// USER-AND-SYS-DEPS: dependency-gen.o:
+// USER-AND-SYS-DEPS-DAG: cfi_blacklist.txt
+
+// RUN: %clang -MMD -MF - %s -fsyntax-only -resource-dir=%S/Inputs/resource_dir_with_cfi_blacklist -fsanitize=cfi-vcall -flto -fvisibility=hidden -I ./ | FileCheck -check-prefix=ONLY-USER-DEPS %s
+// ONLY-USER-DEPS: dependency-gen.o:
+// NOT-ONLY-USER-DEPS: cfi_blacklist.txt \ No newline at end of file
OpenPOWER on IntegriCloud