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