You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
20
external/llvm/test/Instrumentation/SanitizerCoverage/tracing-comdat.ll
vendored
Normal file
20
external/llvm/test/Instrumentation/SanitizerCoverage/tracing-comdat.ll
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
; Test that the coverage guards have proper comdat
|
||||
; RUN: opt < %s -sancov -sanitizer-coverage-level=3 -sanitizer-coverage-trace-pc-guard -S | FileCheck %s
|
||||
; Make sure asan does not instrument __sancov_gen_
|
||||
; RUN: opt < %s -sancov -asan -asan-module -sanitizer-coverage-level=3 -sanitizer-coverage-trace-pc-guard -S | FileCheck %s
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
$Foo = comdat any
|
||||
; Function Attrs: uwtable
|
||||
define linkonce_odr void @Foo() comdat {
|
||||
entry:
|
||||
ret void
|
||||
}
|
||||
|
||||
define linkonce_odr void @Bar() {
|
||||
entry:
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: @__sancov_gen_ = private global [1 x i32] zeroinitializer, section "__sancov_guards", comdat($Foo)
|
||||
; CHECK: @__sancov_gen_.1 = private global [1 x i32] zeroinitializer, section "__sancov_guards"
|
Reference in New Issue
Block a user