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 -enable-new-pm=0 | FileCheck %s 3; RUN: opt < %s -sancov -sanitizer-coverage-level=3 -sanitizer-coverage-trace-pc-guard -mtriple x86_64-windows-msvc -S -enable-new-pm=0 | FileCheck %s 4; RUN: opt < %s -passes='module(sancov-module)' -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)' -sanitizer-coverage-level=3 -sanitizer-coverage-trace-pc-guard -mtriple x86_64-windows-msvc -S | FileCheck %s 6 7define void @Vanilla() { 8entry: 9 ret void 10} 11 12define linkonce void @LinkOnce() { 13entry: 14 ret void 15} 16 17define weak void @Weak() { 18entry: 19 ret void 20} 21 22declare extern_weak void @ExternWeak() 23 24define linkonce_odr void @LinkOnceOdr() { 25entry: 26 ret void 27} 28 29define weak_odr void @WeakOdr() { 30entry: 31 ret void 32} 33 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 { 40