xref: /llvm-project/llvm/test/Bitcode/module-hash-strtab.ll (revision c855615831d77ae8ca94df757a3f2cf605cb3e9f)
1*c8556158SPeter Collingbourne; RUN: opt -module-hash %s -o - | llvm-bcanalyzer -dump | grep '<HASH' > %t
2*c8556158SPeter Collingbourne; RUN: opt -module-hash %S/Inputs/module-hash-strtab1.ll -o - | llvm-bcanalyzer -dump | grep '<HASH' >> %t
3*c8556158SPeter Collingbourne; RUN: opt -module-hash %S/Inputs/module-hash-strtab2.ll -o - | llvm-bcanalyzer -dump | grep '<HASH' >> %t
4*c8556158SPeter Collingbourne; RUN: sort %t | uniq | count 3
5*c8556158SPeter Collingbourne
6*c8556158SPeter Collingbournesource_filename = "foo.c"
7*c8556158SPeter Collingbourne
8*c8556158SPeter Collingbourne$com = comdat any
9*c8556158SPeter Collingbourne
10*c8556158SPeter Collingbournedefine void @main() comdat($com) {
11*c8556158SPeter Collingbourne  call void @foo()
12*c8556158SPeter Collingbourne  ret void
13*c8556158SPeter Collingbourne}
14*c8556158SPeter Collingbourne
15*c8556158SPeter Collingbournedeclare void @foo()
16