3 # Test that the strtab size is included in the allocation even if the
4 # strtab itself is empty. To achieve this, we need a number of symbols N
5 # where alignTo(N*18, 512) < alignTo(N*18 + 4, 512), where the first
6 # positive N fulfilling that is 199.
8 # RUN: llvm-mc -triple=x86_64-windows-msvc %s -filetype=obj -o %t.obj
9 # RUN: lld-link -out:%t.exe -entry:main %t.obj -debug:dwarf
11 # If the size of the strtab isn't allocated for, llvm-readobj would
12 # output SymbolCount: 0 (and dumpbin.exe would error out with "invalid file
13 # or disk full, cannot seek to 0x1602").
15 # RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
16 # CHECK: SymbolCount: 197