mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-18 20:18:12 +00:00

Differential Revision: https://reviews.llvm.org/D35037 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307286 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
457 B
LLVM
16 lines
457 B
LLVM
; RUN: opt -module-hash %s -o - | llvm-bcanalyzer -dump | grep '<HASH' > %t
|
|
; RUN: opt -module-hash %S/Inputs/module-hash-strtab1.ll -o - | llvm-bcanalyzer -dump | grep '<HASH' >> %t
|
|
; RUN: opt -module-hash %S/Inputs/module-hash-strtab2.ll -o - | llvm-bcanalyzer -dump | grep '<HASH' >> %t
|
|
; RUN: sort %t | uniq | count 3
|
|
|
|
source_filename = "foo.c"
|
|
|
|
$com = comdat any
|
|
|
|
define void @main() comdat($com) {
|
|
call void @foo()
|
|
ret void
|
|
}
|
|
|
|
declare void @foo()
|