2015-06-15 05:50:50 +08:00
|
|
|
# REQUIRES: winres
|
|
|
|
|
|
|
|
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj %p/Inputs/resource.res
|
2015-06-15 05:50:50 +08:00
|
|
|
|
|
|
|
# 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
|
2015-06-15 09:35:56 +08:00
|
|
|
HEADER: ResourceTableSize: 0x88
|