linux-packaging-mono/external/llvm/test/Instrumentation/AddressSanitizer/do-not-instrument-profiling-globals.ll
Xamarin Public Jenkins (auto-signing) 64ac736ec5 Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
2019-04-12 14:10:50 +00:00

10 lines
417 B
LLVM

; This test checks that we don't instrument globals created by profiling passes.
; RUN: opt < %s -asan -asan-module -S | FileCheck %s
@__profc_test = private global [1 x i64] zeroinitializer, section "__DATA,__llvm_prf_cnts", align 8
@__llvm_gcov_ctr = internal global [1 x i64] zeroinitializer
; CHECK-DAG: @asan.module_ctor
; CHECK-NOT: @__asan_gen{{.*}}__llvm_gcov_ctr
; CHECK-NOT: @__asan_gen{{.*}}__profc_test