14 lines · plain
1# REQUIRES: x862# RUN: %python %p/Inputs/def-many.py 65535 > %t-65535.def3# RUN: %python %p/Inputs/def-many.py 65536 > %t-65536.def4# RUN: llvm-mc -triple x86_64-win32 %s -filetype=obj -o %t.obj5# RUN: lld-link -dll -noentry %t.obj -out:%t.dll -def:%t-65535.def6# RUN: env LLD_IN_TEST=1 not lld-link -dll -noentry %t.obj -out:%t.dll -def:%t-65536.def 2>&1 | FileCheck %s7 8# CHECK: error: too many exported symbols (got 65536, max 65535)9 10 .text11 .globl f12f:13 ret14