[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / fsanitize-stable-abi.c
blobd1b963a1593968f61fe77885c15af035d35f57bf
1 // RUN: %clang --target=arm64-apple-darwin -fsanitize-stable-abi %s -### 2>&1 | \
2 // RUN: FileCheck %s --check-prefix=CHECK-ASAN-STABLE-WARN
3 // CHECK-ASAN-STABLE-WARN: warning: argument unused during compilation: '-fsanitize-stable-abi'
4 // RUN: %clang --target=arm64-apple-darwin -fsanitize=address -fsanitize-stable-abi %s -### 2>&1 | \
5 // RUN: FileCheck %s --check-prefix=CHECK-ASAN-STABLE-OK
6 // RUN: %clang --target=arm64-apple-darwin -fsanitize=address -fno-sanitize-stable-abi -fsanitize-stable-abi %s -### 2>&1 | \
7 // RUN: FileCheck %s --check-prefix=CHECK-ASAN-STABLE-OK
8 // CHECK-ASAN-STABLE-OK: "-mllvm" "-asan-instrumentation-with-call-threshold=0"
9 // CHECK-ASAN-STABLE-OK: "-mllvm" "-asan-max-inline-poisoning-size=0"
10 // RUN: %clang --target=arm64-apple-darwin -fsanitize=address -fno-sanitize-stable-abi %s -### 2>&1 | \
11 // RUN: FileCheck %s --check-prefix=CHECK-NO-ASAN-STABLE-OK
12 // RUN: %clang --target=arm64-apple-darwin -fsanitize=address -fsanitize-stable-abi -fno-sanitize-stable-abi %s -### 2>&1 | \
13 // RUN: FileCheck %s --check-prefix=CHECK-NO-ASAN-STABLE-OK
14 // CHECK-NO-ASAN-STABLE-OK-NOT: "-mllvm" "-asan-instrumentation-with-call-threshold=0"
15 // CHECK-NO-ASAN-STABLE-OK-NOT: "-mllvm" "-asan-max-inline-poisoning-size=0"