xref: /llvm-project/lld/test/COFF/lto-directives.test (revision d0986519d58e6d71656019cfa6604efa4bf6d3e7)
1; REQUIRES: x86
2
3;; Test linking an LTO object file that contains directives. The
4;; LTO object file is built with an older toolchain, to force it
5;; to be upgraded when loaded.
6
7;; The input file is compiled from source that looks like this:
8;;   void __declspec(dllexport) entry(void) { }
9;; with this command:
10;;   clang -target x86_64-windows-msvc -c main.c -flto
11
12; RUN: lld-link /entry:entry /subsystem:console %p/Inputs/lto-directives.obj /dll /out:%t.dll
13; RUN: llvm-readobj --coff-exports %t.dll | FileCheck %s
14
15; CHECK: Name: entry
16