From 7442d6faa2719e4e7d33a7021c406c5a4facd74d Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 16 Apr 2017 16:02:28 +0000 Subject: Vendor import of clang trunk r300422: https://llvm.org/svn/llvm-project/cfe/trunk@300422 --- test/CodeGen/thin_link_bitcode.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/CodeGen/thin_link_bitcode.c (limited to 'test/CodeGen/thin_link_bitcode.c') diff --git a/test/CodeGen/thin_link_bitcode.c b/test/CodeGen/thin_link_bitcode.c new file mode 100644 index 000000000000..4cb5f798a568 --- /dev/null +++ b/test/CodeGen/thin_link_bitcode.c @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -o %t -flto=thin -fthin-link-bitcode=%t.nodebug -triple x86_64-unknown-linux-gnu -emit-llvm-bc -debug-info-kind=limited %s +// RUN: llvm-bcanalyzer -dump %t | FileCheck %s +// RUN: llvm-bcanalyzer -dump %t.nodebug | FileCheck %s --check-prefix=NO_DEBUG +int main (void) { + return 0; +} + +// CHECK: COMPILE_UNIT +// NO_DEBUG-NOT: COMPILE_UNIT -- cgit v1.2.3