linux-packaging-mono/external/llvm/test/Instrumentation/AddressSanitizer/do-not-instrument-profiling-globals.ll
Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +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