diff options
Diffstat (limited to 'test/CodeGen/summary-index-unnamed-global.ll')
-rw-r--r-- | test/CodeGen/summary-index-unnamed-global.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/summary-index-unnamed-global.ll b/test/CodeGen/summary-index-unnamed-global.ll new file mode 100644 index 000000000000..76485b8ede49 --- /dev/null +++ b/test/CodeGen/summary-index-unnamed-global.ll @@ -0,0 +1,11 @@ +; RUN: %clang_cc1 -flto -triple x86_64-pc-linux-gnu -emit-llvm-bc -disable-llvm-passes -x ir < %s -o - | llvm-bcanalyzer -dump | FileCheck %s +; RUN: %clang_cc1 -flto=thin -triple x86_64-pc-linux-gnu -emit-llvm-bc -disable-llvm-passes -x ir < %s -o - | llvm-bcanalyzer -dump | FileCheck %s +; RUN: %clang_cc1 -fexperimental-new-pass-manager -flto -triple x86_64-pc-linux-gnu -emit-llvm-bc -disable-llvm-passes -x ir < %s -o - | llvm-bcanalyzer -dump | FileCheck %s +; RUN: %clang_cc1 -fexperimental-new-pass-manager -flto=thin -triple x86_64-pc-linux-gnu -emit-llvm-bc -disable-llvm-passes -x ir < %s -o - | llvm-bcanalyzer -dump | FileCheck %s +; REQUIRES: x86-registered-target + +; CHECK-NOT:GLOBALVAL_SUMMARY_BLOCK + +; Make sure this doesn't crash, and we don't try to emit a module summary. +; (The command is roughly emulating what -save-temps would do.) +@0 = global i32 0 |