1 // General blacklist usage. 2 // RUN: %clang -fsanitize=address -fsanitize-blacklist=%s %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-BLACKLIST 3 // CHECK-BLACKLIST: -fsanitize-blacklist 4 5 // Ignore -fsanitize-blacklist flag if there is no -fsanitize flag. 6 // RUN: %clang -fsanitize-blacklist=%s %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-SANITIZE 7 // CHECK-NO-SANITIZE-NOT: -fsanitize-blacklist 8 9 // Flag -fno-sanitize-blacklist wins if it is specified later. 10 // RUN: %clang -fsanitize=address -fsanitize-blacklist=%s -fno-sanitize-blacklist %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-BLACKLIST 11 // CHECK-NO-BLACKLIST-NOT: -fsanitize-blacklist 12 13 // Driver barks on unexisting blacklist files. 14 // RUN: %clang -fno-sanitize-blacklist -fsanitize-blacklist=unexisting.txt %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-SUCH-FILE 15 // CHECK-NO-SUCH-FILE: error: no such file or directory: 'unexisting.txt' 16 17 // PR12920 18 // REQUIRES: clang-driver 19