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