blob: 1c775d09411cac122685a2d3147966147c4f436c [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 \
Leonard Chan9f8ce3f2019-06-13 17:40:03 +00005// 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
Fangrui Song324ace42019-05-01 09:30:45 +00009// RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SINGLE %s
George Rimar91829ee2018-11-14 09:22:16 +000010// 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 \
Leonard Chan9f8ce3f2019-06-13 17:40:03 +000014// 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
Fangrui Song324ace42019-05-01 09:30:45 +000018// RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SPLIT %s
George Rimar91829ee2018-11-14 09:22:16 +000019// MODE-SPLIT-NOT: .dwo
20
21int main (void) {
22 return 0;
23}