brintos

brintos / llvm-project-archived public Read only

0
0
Text · 375 B · 8630508 Raw
9 lines · c
1// RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s2 3float process(float *a) [[clang::nonblocking]] { return *a; }4int 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