Tim Shen | a70ed1d | 2017-06-02 00:08:58 +0000 | [diff] [blame] | 1 | // REQUIRES: x86-registered-target |
| 2 | // |
Teresa Johnson | 488d1dc | 2017-03-23 19:47:49 +0000 | [diff] [blame] | 3 | // 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 |
| 4 | // RUN: llvm-bcanalyzer -dump %t | FileCheck %s |
| 5 | // RUN: llvm-bcanalyzer -dump %t.nodebug | FileCheck %s --check-prefix=NO_DEBUG |
Tim Shen | 50fedec | 2017-06-01 23:27:51 +0000 | [diff] [blame] | 6 | // RUN: %clang_cc1 -o %t.newpm -flto=thin -fexperimental-new-pass-manager -fthin-link-bitcode=%t.newpm.nodebug -triple x86_64-unknown-linux-gnu -emit-llvm-bc -debug-info-kind=limited %s |
| 7 | // RUN: llvm-bcanalyzer -dump %t.newpm | FileCheck %s |
| 8 | // RUN: llvm-bcanalyzer -dump %t.newpm.nodebug | FileCheck %s --check-prefix=NO_DEBUG |
Teresa Johnson | 488d1dc | 2017-03-23 19:47:49 +0000 | [diff] [blame] | 9 | int main (void) { |
| 10 | return 0; |
| 11 | } |
| 12 | |
| 13 | // CHECK: COMPILE_UNIT |
| 14 | // NO_DEBUG-NOT: COMPILE_UNIT |