1; RUN: llvm-reduce --delta-passes=basic-blocks --abort-on-invalid-reduction --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
2; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s
3
4; CHECK-FINAL-NOT: = comdat
5; CHECK-INTERESTINGNESS: @callee(
6; CHECK-FINAL: declare void @callee()
7
8$foo = comdat any
9
10define void @callee() comdat($foo) {
11  ret void
12}
13
14; CHECK-ALL: define void @caller()
15define void @caller() {
16entry:
17; CHECK-ALL: call void @callee()
18; CHECK-ALL: ret void
19  call void @callee()
20  ret void
21}
22