Files
clang-p2996/lld/test/pecoff/resource.test
Rui Ueyama 7385120d65 [PECOFF] Fix failing test.
This should be covered by the Driver's unit tests.

llvm-svn: 214134
2014-07-28 22:31:37 +00:00

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