summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/thin_link_bitcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/thin_link_bitcode.c')
-rw-r--r--clang/test/CodeGen/thin_link_bitcode.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/thin_link_bitcode.c b/clang/test/CodeGen/thin_link_bitcode.c
new file mode 100644
index 00000000000..4cb5f798a56
--- /dev/null
+++ b/clang/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
OpenPOWER on IntegriCloud