Clang Project

clang_source_code/test/CodeGen/thinlto-split-dwarf.c
1// REQUIRES: x86-registered-target
2
3// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux-gnu \
4// RUN:   -flto=thin -emit-llvm-bc \
5// RUN:   -o %t.o %s
6
7// RUN: llvm-lto2 run -thinlto-distributed-indexes %t.o \
8// RUN:   -o %t2.index \
9// RUN:   -r=%t.o,main,px
10
11// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu \
12// RUN:   -emit-obj -fthinlto-index=%t.o.thinlto.bc \
13// RUN:   -o %t.native.o -split-dwarf-file %t.native.dwo -x ir %t.o
14
15// RUN: llvm-readobj -sections %t.native.o | FileCheck --check-prefix=O %s
16// RUN: llvm-readobj -sections %t.native.dwo | FileCheck --check-prefix=DWO %s
17
18// O-NOT: .dwo
19// DWO: .dwo
20
21int main() {}
22