diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-07-13 19:25:18 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-07-13 19:25:18 +0000 |
commit | ca089b24d48ef6fa8da2d0bb8c25bb802c4a95c0 (patch) | |
tree | 3a28a772df9b17aef34f49e3c727965ad28c0c93 /test/Bitcode/module-hash-strtab.ll | |
parent | 9df3605dea17e84f8183581f6103bd0c79e2a606 (diff) |
Notes
Diffstat (limited to 'test/Bitcode/module-hash-strtab.ll')
-rw-r--r-- | test/Bitcode/module-hash-strtab.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Bitcode/module-hash-strtab.ll b/test/Bitcode/module-hash-strtab.ll new file mode 100644 index 000000000000..e5a1fb0c4077 --- /dev/null +++ b/test/Bitcode/module-hash-strtab.ll @@ -0,0 +1,15 @@ +; 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() |