1 // RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -fsanitize=realtime -emit-llvm -o - %s | FileCheck %s
3 int foo(int *a
) [[clang::nonblocking
]] { return *a
; }
5 // The first instruction after the function is entred should be a call to
6 // enable the realtime sanitizer stack.
7 // CHECK-LABEL: define{{.*}}@foo
9 // CHECK-NEXT: call{{.*}}__rtsan_realtime_enter
11 // __rtsan_realtime_exit should be inserted at all function returns.
12 // CHECK-LABEL: call{{.*}}__rtsan_realtime_exit