1 // Option should not be passed to the frontend by default.
2 // RUN: %clang -target x86_64-apple-macosx10.15-gnu -fsanitize=address %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='