aboutsummaryrefslogtreecommitdiff
path: root/test/Bitcode/thinlto-empty-summary-section.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Bitcode/thinlto-empty-summary-section.ll')
-rw-r--r--test/Bitcode/thinlto-empty-summary-section.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Bitcode/thinlto-empty-summary-section.ll b/test/Bitcode/thinlto-empty-summary-section.ll
new file mode 100644
index 000000000000..97086611ff4b
--- /dev/null
+++ b/test/Bitcode/thinlto-empty-summary-section.ll
@@ -0,0 +1,7 @@
+; Ensure we get a summary block even when the file is empty.
+; RUN: opt -module-summary %s -o %t.o
+; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s
+
+; CHECK: <GLOBALVAL_SUMMARY_BLOCK
+; CHECK: <VERSION op0=
+; CHECK: </GLOBALVAL_SUMMARY_BLOCK>