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
6 //  RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SINGLE %s
7 //  MODE-SINGLE: .dwo
8 
9 // Testing to ensure that setting both -split-dwarf-file and -split-dwarf-output
10 // does not place .dwo sections into regular output object.
11 //  RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \
12 //  RUN:   -split-dwarf-file %t.dwo -split-dwarf-output %t.dwo -emit-obj -o %t.o %s
13 //  RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SPLIT %s
14 //  MODE-SPLIT-NOT: .dwo
15 
main(void)16 int main (void) {
17   return 0;
18 }
19