summaryrefslogtreecommitdiff
path: root/test/COFF/resource.test
blob: a73a202582010f32bbdbce0803fd5a39b4d6b244 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
# RUN: lld-link /out:%t.exe /entry:main %t.obj %p/Inputs/resource.res

# Check if the binary contains UTF-16LE string "Hello" copied from resource.res.
# RUN: FileCheck --check-prefix=EXE %s < %t.exe

EXE: {{H.e.l.l.o}}

# RUN: llvm-readobj -file-headers %t.exe | FileCheck  --check-prefix=HEADER %s

HEADER: ResourceTableRVA: 0x1000
HEADER: ResourceTableSize: 0x88