1; RUN: opt -module-hash %s -o - | llvm-bcanalyzer -dump | grep '<HASH' > %t
2; RUN: opt -module-hash %S/Inputs/module-hash-strtab1.ll -o - | llvm-bcanalyzer -dump | grep '<HASH' >> %t
3; RUN: opt -module-hash %S/Inputs/module-hash-strtab2.ll -o - | llvm-bcanalyzer -dump | grep '<HASH' >> %t
4; RUN: sort %t | uniq | count 3
5
6source_filename = "foo.c"
7
8$com = comdat any
9
10define void @main() comdat($com) {
11  call void @foo()
12  ret void
13}
14
15declare void @foo()
16