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 |
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 | |
15 | int main (void) { |
16 | return 0; |
17 | } |
18 | |