Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / COFF / export-limit.s
blobbaf1f5d741c2f79e4c599d13c7a13ecbba0dd46a
1 # REQUIRES: x86
2 # RUN: %python %p/Inputs/def-many.py 65535 > %t-65535.def
3 # RUN: %python %p/Inputs/def-many.py 65536 > %t-65536.def
4 # RUN: llvm-mc -triple x86_64-win32 %s -filetype=obj -o %t.obj
5 # RUN: lld-link -dll -noentry %t.obj -out:%t.dll -def:%t-65535.def
6 # RUN: env LLD_IN_TEST=1 not lld-link -dll -noentry %t.obj -out:%t.dll -def:%t-65536.def 2>&1 | FileCheck %s
8 # CHECK: error: too many exported symbols (got 65536, max 65535)
10 .text
11 .globl f
13 ret