16 lines · plain
1; REQUIRES: x862 3;; Test linking an LTO object file that contains directives. The4;; LTO object file is built with an older toolchain, to force it5;; 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 -flto11 12; RUN: lld-link /entry:entry /subsystem:console %p/Inputs/lto-directives.obj /dll /out:%t.dll13; RUN: llvm-readobj --coff-exports %t.dll | FileCheck %s14 15; CHECK: Name: entry16