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