xref: /llvm-project/lld/test/COFF/lto-debug-fission.ll (revision 2a631a8fedc21eae9568feb69d405800fa9648e5)
1; REQUIRES: x86
2
3; RUN: opt %s -o %t1.o
4; RUN: rm -rf %t.dir
5
6; Test to ensure that -dwodir:$DIR creates .dwo files under $DIR
7; RUN: lld-link -dwodir:%t.dir -noentry -dll %t1.o -out:%t.dll
8; RUN: llvm-readobj -h %t.dir/0.dwo | FileCheck %s
9
10; CHECK: Format: COFF-x86-64
11
12target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
13target triple = "x86_64-unknown-windows-msvc"
14
15define void @f() {
16entry:
17  ret void
18}
19