brintos

brintos / llvm-project-archived public Read only

0
0
Text · 517 B · 9ba0103 Raw
14 lines · c
1// RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -fsanitize=realtime -emit-llvm -o - %s | FileCheck %s2 3int foo(int *a) [[clang::nonblocking]] { return *a; }4 5// The first instruction after the function is entred should be a call to6// enable the realtime sanitizer stack.7// CHECK-LABEL: define{{.*}}@foo8// CHECK-NEXT: entry:9// CHECK-NEXT: call{{.*}}__rtsan_realtime_enter10 11// __rtsan_realtime_exit should be inserted at all function returns.12// CHECK-LABEL: call{{.*}}__rtsan_realtime_exit13// CHECK-NEXT: ret14