clang/test/CodeGen/rtsan_no_attribute_sanitizer_disabled.c
raw| 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 .*}} |