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
5 define void @Vanilla() {
10 define linkonce void @LinkOnce() {
15 define weak void @Weak() {
20 declare extern_weak void @ExternWeak()
22 define linkonce_odr void @LinkOnceOdr() {
27 define weak_odr void @WeakOdr() {
32 ; CHECK: define void @Vanilla() comdat {
33 ; CHECK: define linkonce void @LinkOnce() {
34 ; CHECK: define weak void @Weak() {
35 ; CHECK: declare extern_weak void @ExternWeak()
36 ; CHECK: define linkonce_odr void @LinkOnceOdr() comdat {
37 ; CHECK: define weak_odr void @WeakOdr() comdat {