diff options
Diffstat (limited to 'test/COFF/resource.test')
-rw-r--r-- | test/COFF/resource.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/COFF/resource.test b/test/COFF/resource.test new file mode 100644 index 0000000000000..7b6090d89f65f --- /dev/null +++ b/test/COFF/resource.test @@ -0,0 +1,14 @@ +# REQUIRES: winres + +# 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 |