[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / split-debug-single-file.c
blob0c38d0f927a14d0ab0590f581329ad40445d5833
1 // REQUIRES: x86-registered-target
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
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
16 int main (void) {
17 return 0;