]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/COFF/section-size.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / COFF / section-size.s
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %tmain.obj
3 # RUN: echo '.lcomm s, 0x80000000' | llvm-mc -filetype=obj -triple=x86_64-windows-msvc -o %t1.obj
4 # RUN: cp %t1.obj %t2.obj
5 # RUN: echo '.lcomm s, 0xffffffff' | llvm-mc -filetype=obj -triple=x86_64-windows-msvc -o %t3.obj
6
7 # Run: lld-link -entry:main %tmain.obj %t3.obj -out:%t.exe
8
9 # RUN: not lld-link -entry:main %tmain.obj %t1.obj %t2.obj -out:%t.exe 2>&1 | FileCheck %s
10 # CHECK: error: section larger than 4 GiB: .data
11
12 .globl main
13 main:
14         retq