[flang] Fix crash in HLFIR generation (#118399)
[llvm-project.git] / clang / test / CodeGen / rtsan_attribute_inserted.c
blobcebfe43c81234cf95a1ce3da834e28174ef15080
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux -fsanitize=realtime %s -emit-llvm -o - %s | FileCheck %s
3 float process(float *a) [[clang::nonblocking]] { return *a; }
4 // CHECK: @process{{.*}} #0 {
5 // CHECK: attributes #0 = {
6 // CHECK-SAME: {{.*sanitize_realtime .*}}
8 int spinlock(int *a) [[clang::blocking]] { return *a; }
9 // CHECK: @spinlock{{.*}} #1 {
10 // CHECK: attributes #1 = {
11 // CHECK-SAME: {{.*sanitize_realtime_blocking .*}}