[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / Driver / fsanitize-address-destructor.c
blobadb7715f69b3387184bfa48ace7c7c1c04b3283d
1 // Option should not be passed to the frontend by default.
2 // RUN: %clang -target x86_64-apple-macosx10.15-gnu -fsanitize=address %s \
3 // RUN: -### 2>&1 | \
4 // RUN: FileCheck %s
5 // CHECK-NOT: -fsanitize-address-destructor
7 // RUN: %clang -target x86_64-apple-macosx10.15-gnu -fsanitize=address \
8 // RUN: -fsanitize-address-destructor=none %s -### 2>&1 | \
9 // RUN: FileCheck -check-prefix=CHECK-NONE-ARG %s
10 // CHECK-NONE-ARG: "-fsanitize-address-destructor=none"
12 // RUN: %clang -target x86_64-apple-macosx10.15-gnu -fsanitize=address \
13 // RUN: -fsanitize-address-destructor=global %s -### 2>&1 | \
14 // RUN: FileCheck -check-prefix=CHECK-GLOBAL-ARG %s
15 // CHECK-GLOBAL-ARG: "-fsanitize-address-destructor=global"
17 // RUN: not %clang -target x86_64-apple-macosx10.15-gnu -fsanitize=address \
18 // RUN: -fsanitize-address-destructor=bad_arg %s -### 2>&1 | \
19 // RUN: FileCheck -check-prefix=CHECK-INVALID-ARG %s
20 // CHECK-INVALID-ARG: error: unsupported argument 'bad_arg' to option '-fsanitize-address-destructor='