[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / rtsan_no_attribute_sanitizer_disabled.c
blob86305080c94acee50f931608fb03a7fa8a21a79d
1 // RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s
3 float process(float *a) [[clang::nonblocking]] { return *a; }
4 int spinlock(int *a) [[clang::blocking]] { return *a; }
6 // Without the -fsanitize=realtime flag, we shouldn't attach the attributes.
7 // CHECK-NOT: {{.*sanitize_realtime .*}}
8 // CHECK-NOT: {{.*sanitize_realtime_blocking .*}}