1 // REQUIRES: x86-registered-target 2 3 // Testing to ensure -enable-split-dwarf=single allows to place .dwo sections into regular output object. 4 // RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \ 5 // RUN: -enable-split-dwarf=single -split-dwarf-file %t.o -emit-obj -o %t.o %s -fno-experimental-new-pass-manager 6 // RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SINGLE %s 7 // RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \ 8 // RUN: -enable-split-dwarf=single -split-dwarf-file %t.o -emit-obj -o %t.o %s -fexperimental-new-pass-manager 9 // RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SINGLE %s 10 // MODE-SINGLE: .dwo 11 12 // Testing to ensure -enable-split-dwarf=split does not place .dwo sections into regular output object. 13 // RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \ 14 // RUN: -enable-split-dwarf=split -split-dwarf-file %t.o -emit-obj -o %t.o %s -fno-experimental-new-pass-manager 15 // RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SPLIT %s 16 // RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \ 17 // RUN: -enable-split-dwarf=split -split-dwarf-file %t.o -emit-obj -o %t.o %s -fexperimental-new-pass-manager 18 // RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SPLIT %s 19 // MODE-SPLIT-NOT: .dwo 20 21 int main (void) { 22 return 0; 23 } 24