blob: ffbc127a463cdf7a8955bf0e64ca2d0974b8e14d [file] [log] [blame]
George Rimar91829ee2018-11-14 09:22:16 +00001// 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
6// RUN: llvm-objdump -section-headers %t.o | FileCheck --check-prefix=MODE-SINGLE %s
7// MODE-SINGLE: .dwo
8
9// Testing to ensure -enable-split-dwarf=split does not place .dwo sections into regular output object.
10// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \
11// RUN: -enable-split-dwarf=split -split-dwarf-file %t.o -emit-obj -o %t.o %s
12// RUN: llvm-objdump -section-headers %t.o | FileCheck --check-prefix=MODE-SPLIT %s
13// MODE-SPLIT-NOT: .dwo
14
15int main (void) {
16 return 0;
17}