| 1 |
// REQUIRES: x86-registered-target |
| 2 |
// |
| 3 |
// RUN: %clang -flto=thin -fthin-link-bitcode=%t.bc -target x86_64-unknown-linux-gnu -### %s 2>&1 | FileCheck %s --check-prefix=LINKBC |
| 4 |
// |
| 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 %s |
| 6 |
// RUN: llvm-bcanalyzer -dump %t.newpm | FileCheck %s |
| 7 |
// RUN: llvm-bcanalyzer -dump %t.newpm.nodebug | FileCheck %s --check-prefix=NO_DEBUG |
| 8 |
int main (void) { |
| 9 |
return 0; |
| 10 |
} |
| 11 |
|
| 12 |
// LINKBC: -fthin-link-bitcode= |
| 13 |
|
| 14 |
// CHECK: COMPILE_UNIT |
| 15 |
// NO_DEBUG-NOT: COMPILE_UNIT |