forked from OSchip/llvm-project
15 lines
443 B
Plaintext
15 lines
443 B
Plaintext
# REQUIRES: winres
|
|
|
|
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
|
|
# RUN: lld -flavor link2 /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
|