2017-08-22 11:15:28 +08:00
|
|
|
# REQUIRES: manifest_tool
|
2016-04-19 09:21:58 +08:00
|
|
|
|
2017-07-08 11:06:10 +08:00
|
|
|
# RUN: yaml2obj %p/Inputs/ret42.yaml > %t.obj
|
|
|
|
# RUN: lld-link /out:%t.exe /entry:main \
|
|
|
|
# RUN: /manifest:embed \
|
|
|
|
# RUN: /manifestuac:"level='requireAdministrator'" \
|
|
|
|
# RUN: /manifestinput:%p/Inputs/manifestinput.test %t.obj
|
|
|
|
# RUN: llvm-readobj -coff-resources -file-headers %t.exe | FileCheck %s \
|
|
|
|
# RUN: -check-prefix TEST_EMBED
|
|
|
|
|
|
|
|
TEST_EMBED: ResourceTableRVA: 0x1000
|
|
|
|
TEST_EMBED-NEXT: ResourceTableSize: 0x298
|
|
|
|
TEST_EMBED-DAG: Resources [
|
2017-10-28 03:23:12 +08:00
|
|
|
TEST_EMBED-NEXT: Total Number of Resources: 1
|
2017-07-08 11:06:10 +08:00
|
|
|
TEST_EMBED-DAG: Number of String Entries: 0
|
|
|
|
TEST_EMBED-NEXT: Number of ID Entries: 1
|
|
|
|
TEST_EMBED-NEXT: Type: kRT_MANIFEST (ID 24) [
|
|
|
|
TEST_EMBED-NEXT: Table Offset: 0x18
|
|
|
|
TEST_EMBED-NEXT: Number of String Entries: 0
|
|
|
|
TEST_EMBED-NEXT: Number of ID Entries: 1
|
|
|
|
TEST_EMBED-NEXT: Name: (ID 1) [
|
|
|
|
TEST_EMBED-NEXT: Table Offset: 0x30
|
|
|
|
TEST_EMBED-NEXT: Number of String Entries: 0
|
|
|
|
TEST_EMBED-NEXT: Number of ID Entries: 1
|
|
|
|
TEST_EMBED-NEXT: Language: (ID 1033) [
|
|
|
|
TEST_EMBED-NEXT: Entry Offset: 0x48
|