xref: /llvm-project/clang/test/CodeGen/rtsan_no_attribute_sanitizer_disabled.c (revision 4102625380823e58d7b13f01b5bd979a29bce19e)
1 // RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s
2 
3 float process(float *a) [[clang::nonblocking]] { return *a; }
4 int spinlock(int *a) [[clang::blocking]] { return *a; }
5 
6 // Without the -fsanitize=realtime flag, we shouldn't attach the attributes.
7 // CHECK-NOT: {{.*sanitize_realtime .*}}
8 // CHECK-NOT: {{.*sanitize_realtime_blocking .*}}
9