1 # REQUIRES: manifest_tool
3 # RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
4 # RUN: lld-link /out:%t.exe /entry:main \
5 # RUN: /manifest:embed \
6 # RUN: /manifestuac:"level='requireAdministrator'" \
7 # RUN: /manifestinput:%p/Inputs/manifestinput.test %t.obj
8 # RUN: llvm-readobj --coff-resources --file-headers %t.exe | FileCheck %s \
9 # RUN: -check-prefix TEST_EMBED
11 TEST_EMBED: ResourceTableRVA: 0x2000
12 TEST_EMBED-NEXT: ResourceTableSize: 0x2A0
13 TEST_EMBED-DAG: Resources [
14 TEST_EMBED-NEXT: Total Number of Resources: 1
15 TEST_EMBED-DAG: Number of String Entries: 0
16 TEST_EMBED-NEXT: Number of ID Entries: 1
17 TEST_EMBED-NEXT: Type: MANIFEST (ID 24) [
18 TEST_EMBED-NEXT: Table Offset: 0x18
19 TEST_EMBED-NEXT: Number of String Entries: 0
20 TEST_EMBED-NEXT: Number of ID Entries: 1
21 TEST_EMBED-NEXT: Name: (ID 1) [
22 TEST_EMBED-NEXT: Table Offset: 0x30
23 TEST_EMBED-NEXT: Number of String Entries: 0
24 TEST_EMBED-NEXT: Number of ID Entries: 1
25 TEST_EMBED-NEXT: Language: (ID 1033) [
26 TEST_EMBED-NEXT: Entry Offset: 0x48