1 ; Test that interposable symbols do not get put in comdats.
2 ; RUN: opt < %s -sancov -sanitizer-coverage-level=3 -sanitizer-coverage-trace-pc-guard -mtriple x86_64-linux-gnu -S | FileCheck %s
3 ; RUN: opt < %s -sancov -sanitizer-coverage-level=3 -sanitizer-coverage-trace-pc-guard -mtriple x86_64-windows-msvc -S | FileCheck %s
4 ; RUN: opt < %s -passes='module(sancov-module),function(sancov-func)' -sanitizer-coverage-level=3 -sanitizer-coverage-trace-pc-guard -mtriple x86_64-linux-gnu -S | FileCheck %s
5 ; RUN: opt < %s -passes='module(sancov-module),function(sancov-func)' -sanitizer-coverage-level=3 -sanitizer-coverage-trace-pc-guard -mtriple x86_64-windows-msvc -S | FileCheck %s
7 define void @Vanilla() {
12 define linkonce void @LinkOnce() {
17 define weak void @Weak() {
22 declare extern_weak void @ExternWeak()
24 define linkonce_odr void @LinkOnceOdr() {
29 define weak_odr void @WeakOdr() {
34 ; CHECK: define void @Vanilla() comdat {
35 ; CHECK: define linkonce void @LinkOnce() {
36 ; CHECK: define weak void @Weak() {
37 ; CHECK: declare extern_weak void @ExternWeak()
38 ; CHECK: define linkonce_odr void @LinkOnceOdr() comdat {
39 ; CHECK: define weak_odr void @WeakOdr() comdat {