]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/fill.test
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / fill.test
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/fill.s -o %t.o
3 # RUN: ld.lld -o %t --script %s %t.o
4 # RUN: llvm-objdump -s %t | FileCheck %s
5
6 SECTIONS {
7   .out : {
8    FILL(0x11111111)
9    . += 2;
10    *(.aaa)
11    . += 4;
12    *(.bbb)
13    . += 4;
14    FILL(0x22222222);
15    . += 4;
16   }
17 }
18
19 # CHECK:      Contents of section .out:
20 # CHECK-NEXT: 2222aa22 222222bb 22222222 22222222