]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/lto/thinlto-debug-fission.ll
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / lto / thinlto-debug-fission.ll
1 ; REQUIRES: x86
2
3 ; RUN: opt %s -o %t1.o
4 ; RUN: rm -rf %T/dwo
5
6 ; Test to ensure that --plugin-opt=dwo_dir=$DIR creates .dwo files under $DIR
7 ; RUN: ld.lld --plugin-opt=dwo_dir=%T/dwo -shared %t1.o -o /dev/null
8 ; RUN: llvm-readobj -h %T/dwo/0.dwo | FileCheck %s
9
10 ; CHECK: Format: ELF64-x86-64
11
12 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
13 target triple = "x86_64-unknown-linux-gnu"
14
15 declare void @g(...)
16
17 define void @f() {
18 entry:
19   call void (...) @g()
20   ret void
21 }