forked from OSchip/llvm-project
17 lines
572 B
Plaintext
17 lines
572 B
Plaintext
# REQUIRES: winres
|
|
|
|
# RUN: yaml2obj %p/Inputs/nop.obj.yaml > %t.obj
|
|
|
|
# RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:start /opt:noref \
|
|
# RUN: -- %t.obj %p/Inputs/resource.res
|
|
|
|
# Check if the binary contains UTF-16LE string "Hello" copied from resource.res.
|
|
# RUN: cat %t.exe | grep 'H.e.l.l.o'
|
|
|
|
# RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:start /opt:noref \
|
|
# RUN: /manifest:embed -- %t.obj %p/Inputs/resource.res
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck %s
|
|
|
|
CHECK: ResourceTableRVA: 0x1000
|
|
CHECK: ResourceTableSize: 0x208
|