16 lines · c
1// REQUIRES: x86-registered-target2//3// RUN: %clang -flto=thin -fthin-link-bitcode=%t.bc -target x86_64-unknown-linux-gnu -### %s 2>&1 | FileCheck %s --check-prefix=LINKBC4//5// RUN: %clang_cc1 -o %t.newpm -flto=thin -fthin-link-bitcode=%t.newpm.nodebug -triple x86_64-unknown-linux-gnu -emit-llvm-bc -debug-info-kind=limited %s6// RUN: llvm-bcanalyzer -dump %t.newpm | FileCheck %s7// RUN: llvm-bcanalyzer -dump %t.newpm.nodebug | FileCheck %s --check-prefix=NO_DEBUG8int main (void) {9 return 0;10}11 12// LINKBC: -fthin-link-bitcode=13 14// CHECK: COMPILE_UNIT15// NO_DEBUG-NOT: COMPILE_UNIT16