[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / fsanitize-address-destructor.c
blobc56cc7eca0bca3e90411cd68cdfceb24a367c03d
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: %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='