llvm/llvm/test/tools/llvm-rc/tag-dialog.test

; RUN: llvm-rc -no-preprocess /FO %t -- %p/Inputs/tag-dialog.rc
; RUN: llvm-readobj %t | FileCheck %s --check-prefix=DIALOG

; DIALOG: Resource type (int): DIALOG (ID 5)
; DIALOG-NEXT: Resource name (string): EMPTY
; DIALOG-NEXT: Data version: 0
; DIALOG-NEXT: Memory flags: 0x1030
; DIALOG-NEXT: Language ID: 1033
; DIALOG-NEXT: Version (major): 0
; DIALOG-NEXT: Version (minor): 0
; DIALOG-NEXT: Characteristics: 0
; DIALOG-NEXT: Data size: 32
; DIALOG-NEXT: Data: (
; DIALOG-NEXT:   0000: 0100FFFF 00000000 00000000 00008880  |................|
; DIALOG-NEXT:   0010: 00000200 03000400 05000000 00000000  |................|
; DIALOG-NEXT: )

; DIALOG-DAG: Resource type (int): DIALOG (ID 5)
; DIALOG-NEXT: Resource name (string): ARGS
; DIALOG-NEXT: Data version: 0
; DIALOG-NEXT: Memory flags: 0x1030
; DIALOG-NEXT: Language ID: 1033
; DIALOG-NEXT: Version (major): 0
; DIALOG-NEXT: Version (minor): 0
; DIALOG-NEXT: Characteristics: 0
; DIALOG-NEXT: Data size: 552
; DIALOG-NEXT: Data: (
; DIALOG-NEXT:   0000: 0100FFFF 00000000 00000000 00008880  |................|
; DIALOG-NEXT:   0010: 0C000200 03000400 05000000 00000000  |................|
; DIALOG-NEXT:   0020: 00000000 00000000 00000250 00000000  |...........P....|
; DIALOG-NEXT:   0030: 32000A00 01000000 FFFF8200 4C006500  |2...........L.e.|
; DIALOG-NEXT:   0040: 66007400 20007400 65007800 74000000  |f.t. .t.e.x.t...|
; DIALOG-NEXT:   0050: 00000000 00000000 00000000 2A000250  |............*..P|
; DIALOG-NEXT:   0060: 0C000000 32000A00 02000000 FFFF8200  |....2...........|
; DIALOG-NEXT:   0070: 52006900 67006800 74002000 74006500  |R.i.g.h.t. .t.e.|
; DIALOG-NEXT:   0080: 78007400 00000000 00000000 AD0BD0BA  |x.t.............|
; DIALOG-NEXT:   0090: FECAAF5B 18000000 32000A00 03000000  |...[....2.......|
; DIALOG-NEXT:   00A0: FFFF8200 4C006500 66007400 20007400  |....L.e.f.t. .t.|
; DIALOG-NEXT:   00B0: 65007800 74002000 32000000 00000000  |e.x.t. .2.......|
; DIALOG-NEXT:   00C0: 78563412 02000000 03000250 24000000  |xV4........P$...|
; DIALOG-NEXT:   00D0: 32000A00 04000000 FFFF8200 52006900  |2...........R.i.|
; DIALOG-NEXT:   00E0: 67006800 74002000 74006500 78007400  |g.h.t. .t.e.x.t.|
; DIALOG-NEXT:   00F0: 20003200 00000000 00000000 00000000  | .2.............|
; DIALOG-NEXT:   0100: 00008150 64000000 3C000A00 10000000  |...Pd...<.......|
; DIALOG-NEXT:   0110: FFFF8100 00000000 00000000 00000000  |................|
; DIALOG-NEXT:   0120: 0000BBFA 64001000 3C000A00 11000000  |....d...<.......|
; DIALOG-NEXT:   0130: FFFF8100 00000000 00000000 DD0000CC  |................|
; DIALOG-NEXT:   0140: 0B0081F0 64002000 3C000A00 12000000  |....d. .<.......|
; DIALOG-NEXT:   0150: FFFF8100 00000000 146A0ACE 00000000  |.........j......|
; DIALOG-NEXT:   0160: 00008150 64002000 3C000A00 13000000  |...Pd. .<.......|
; DIALOG-NEXT:   0170: FFFF8100 00000000 00000000 00000000  |................|
; DIALOG-NEXT:   0180: 00000150 C8000000 36000B00 20000000  |...P....6... ...|
; DIALOG-NEXT:   0190: FFFF8000 50007500 73006800 20003100  |....P.u.s.h. .1.|
; DIALOG-NEXT:   01A0: 00000000 00000000 00000000 39300150  |............90.P|
; DIALOG-NEXT:   01B0: C9000F00 36000B00 21000000 FFFF8000  |....6...!.......|
; DIALOG-NEXT:   01C0: 50007500 73006800 20003200 00000000  |P.u.s.h. .2.....|
; DIALOG-NEXT:   01D0: 00000000 420000C0 0A000150 CA001E00  |....B......P....|
; DIALOG-NEXT:   01E0: 36000B00 22000000 FFFF8000 50007500  |6...".......P.u.|
; DIALOG-NEXT:   01F0: 73006800 20003300 00000000 02000000  |s.h. .3.........|
; DIALOG-NEXT:   0200: 01000000 00000150 C8002D00 36000B00  |.......P..-.6...|
; DIALOG-NEXT:   0210: 23000000 FFFF8000 50007500 73006800  |#.......P.u.s.h.|
; DIALOG-NEXT:   0220: 20003400 00000000                    | .4.....|
; DIALOG-NEXT: )

; DIALOG-DAG: Resource type (int): DIALOG (ID 5)
; DIALOG-NEXT: Resource name (string): TYPES
; DIALOG-NEXT: Data version: 0
; DIALOG-NEXT: Memory flags: 0x1030
; DIALOG-NEXT: Language ID: 1033
; DIALOG-NEXT: Version (major): 0
; DIALOG-NEXT: Version (minor): 0
; DIALOG-NEXT: Characteristics: 0
; DIALOG-NEXT: Data size: 778
; DIALOG-NEXT: Data: (
; DIALOG-NEXT:   0000: 0100FFFF 54535251 00000000 00008880  |....TSRQ........|
; DIALOG-NEXT:   0010: 15003930 31D43412 ED1E0000 00000000  |..901.4.........|
; DIALOG-NEXT:   0020: 00000000 00000000 00000250 02000300  |...........P....|
; DIALOG-NEXT:   0030: 04000500 01000000 FFFF8200 4C000000  |............L...|
; DIALOG-NEXT:   0040: 00000000 00000000 00000000 01000250  |...............P|
; DIALOG-NEXT:   0050: 07000800 09000A00 06000000 FFFF8200  |................|
; DIALOG-NEXT:   0060: 43000000 00000000 00000000 00000000  |C...............|
; DIALOG-NEXT:   0070: 02000250 0C000D00 0E000F00 0B000000  |...P............|
; DIALOG-NEXT:   0080: FFFF8200 52000000 00000000 00000000  |....R...........|
; DIALOG-NEXT:   0090: 00000000 00000150 EA03EB03 EC03ED03  |.......P........|
; DIALOG-NEXT:   00A0: E9030000 FFFF8000 50004200 00000000  |........P.B.....|
; DIALOG-NEXT:   00B0: 00000000 00000000 01000150 EF03F003  |...........P....|
; DIALOG-NEXT:   00C0: F103F203 EE030000 FFFF8000 44005000  |............D.P.|
; DIALOG-NEXT:   00D0: 42000000 00000000 00000000 00000000  |B...............|
; DIALOG-NEXT:   00E0: 00008150 D207D307 D407D507 D1070000  |...P............|
; DIALOG-NEXT:   00F0: FFFF8100 00000000 00000000 00000000  |................|
; DIALOG-NEXT:   0100: 00000250 BA0BBB0B BC0BBD0B B90B0000  |...P............|
; DIALOG-NEXT:   0110: FFFF8200 FFFFFFFF 00000000 00000000  |................|
; DIALOG-NEXT:   0120: 00000000 06000150 02000300 04000500  |.......P........|
; DIALOG-NEXT:   0130: 0C000000 FFFF8000 41003300 00000000  |........A.3.....|
; DIALOG-NEXT:   0140: 00000000 00000000 03000150 02000300  |...........P....|
; DIALOG-NEXT:   0150: 04000500 0D000000 FFFF8000 41004300  |............A.C.|
; DIALOG-NEXT:   0160: 00000000 00000000 00000000 09000050  |...............P|
; DIALOG-NEXT:   0170: 02000300 04000500 0E000000 FFFF8000  |................|
; DIALOG-NEXT:   0180: 41005200 00000000 00000000 00000000  |A.R.............|
; DIALOG-NEXT:   0190: 02000150 02000300 04000500 0F000000  |...P............|
; DIALOG-NEXT:   01A0: FFFF8000 43000000 00000000 00000000  |....C...........|
; DIALOG-NEXT:   01B0: 00000000 00000050 02000300 04000500  |.......P........|
; DIALOG-NEXT:   01C0: 10000000 FFFF8500 00000000 00000000  |................|
; DIALOG-NEXT:   01D0: 00000000 07000050 02000300 04000500  |.......P........|
; DIALOG-NEXT:   01E0: 11000000 FFFF8000 47000000 00000000  |........G.......|
; DIALOG-NEXT:   01F0: 00000000 00000000 03000050 02000300  |...........P....|
; DIALOG-NEXT:   0200: 04000500 12000000 FFFF8200 49000000  |............I...|
; DIALOG-NEXT:   0210: 00000000 00000000 00000000 01008050  |...............P|
; DIALOG-NEXT:   0220: 02000300 04000500 13000000 FFFF8300  |................|
; DIALOG-NEXT:   0230: 00000000 00000000 00000000 04000050  |...............P|
; DIALOG-NEXT:   0240: 02000300 04000500 14000000 FFFF8000  |................|
; DIALOG-NEXT:   0250: 52000000 00000000 00000000 00000000  |R...............|
; DIALOG-NEXT:   0260: 00000050 02000300 04000500 15000000  |...P............|
; DIALOG-NEXT:   0270: FFFF8500 00000000 00000000 00000000  |................|
; DIALOG-NEXT:   0280: 00000050 02000300 04000500 16000000  |...P............|
; DIALOG-NEXT:   0290: FFFF8400 00000000 00000000 00000000  |................|
; DIALOG-NEXT:   02A0: 05000150 02000300 04000500 17000000  |...P............|
; DIALOG-NEXT:   02B0: FFFF8000 53000000 00000000 00000000  |....S...........|
; DIALOG-NEXT:   02C0: 00000000 0A000150 02000300 04000500  |.......P........|
; DIALOG-NEXT:   02D0: 18000000 FFFF8000 50000000 00000000  |........P.......|
; DIALOG-NEXT:   02E0: 00000000 00000000 2A000050 02000300  |........*..P....|
; DIALOG-NEXT:   02F0: 04000500 19000000 43006C00 61007300  |........C.l.a.s.|
; DIALOG-NEXT:   0300: 73000000 43000000 0000               |s...C.....|
; DIALOG-NEXT: )

; DIALOG-DAG: Resource type (int): DIALOG (ID 5)
; DIALOG-NEXT: Resource name (string): EMPTYOLD
; DIALOG-NEXT: Data version: 0
; DIALOG-NEXT: Memory flags: 0x1030
; DIALOG-NEXT: Language ID: 1033
; DIALOG-NEXT: Version (major): 0
; DIALOG-NEXT: Version (minor): 0
; DIALOG-NEXT: Characteristics: 0
; DIALOG-NEXT: Data size: 24
; DIALOG-NEXT: Data: (
; DIALOG-NEXT:   0000: 00008880 00000000 00000100 02000300  |................|
; DIALOG-NEXT:   0010: 04000000 00000000                    |........|
; DIALOG-NEXT: )

; DIALOG-DAG: Resource type (int): DIALOG (ID 5)
; DIALOG-NEXT: Resource name (string): ARGSOLD
; DIALOG-NEXT: Data version: 0
; DIALOG-NEXT: Memory flags: 0x1030
; DIALOG-NEXT: Language ID: 1033
; DIALOG-NEXT: Version (major): 0
; DIALOG-NEXT: Version (minor): 0
; DIALOG-NEXT: Characteristics: 0
; DIALOG-NEXT: Data size: 198
; DIALOG-NEXT: Data: (
; DIALOG-NEXT:   0000: 00008880 00000000 06000100 02000300  |................|
; DIALOG-NEXT:   0010: 04000000 00000000 00000250 00000000  |...........P....|
; DIALOG-NEXT:   0020: 02000300 04000500 0100FFFF 82004C00  |..............L.|
; DIALOG-NEXT:   0030: 00000000 0B000250 00000000 07000800  |.......P........|
; DIALOG-NEXT:   0040: 09000A00 0600FFFF 82004C00 32000000  |..........L.2...|
; DIALOG-NEXT:   0050: 00000000 11000250 12000000 0D000E00  |.......P........|
; DIALOG-NEXT:   0060: 0F001000 FFFFFFFF 82004C00 33000000  |..........L.3...|
; DIALOG-NEXT:   0070: 00000000 00008150 00000000 14001500  |.......P........|
; DIALOG-NEXT:   0080: 16001700 1300FFFF 81000000 00000000  |................|
; DIALOG-NEXT:   0090: 1D008150 00000000 19001A00 1B001C00  |...P............|
; DIALOG-NEXT:   00A0: 1800FFFF 81000000 00000000 23008150  |............#..P|
; DIALOG-NEXT:   00B0: 24000000 1F002000 21002200 1E00FFFF  |$..... .!.".....|
; DIALOG-NEXT:   00C0: 81000000 0000                        |......|
; DIALOG-NEXT: )


; RUN: llvm-rc -no-preprocess /FO %t -- %p/Inputs/tag-dialog-headers.rc
; RUN: llvm-readobj %t | FileCheck %s --check-prefix=HEADERS

; HEADERS: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 1
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 32
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 00008880  |................|
; HEADERS-NEXT:   0010: 00000100 02000300 04000000 00000000  |................|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 2
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 24
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 00008880 00000000 00000100 02000300  |................|
; HEADERS-NEXT:   0010: 04000000 00000000                    |........|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 3
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 52
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 0000C880  |................|
; HEADERS-NEXT:   0010: 00001027 204E3075 FF7F0000 00004D00  |...' N0u......M.|
; HEADERS-NEXT:   0020: 79002000 43006100 70007400 69006F00  |y. .C.a.p.t.i.o.|
; HEADERS-NEXT:   0030: 6E000000                             |n...|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 4
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 44
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0000C880 00000000 00000080 FF7F0000  |................|
; HEADERS-NEXT:   0010: FF7F0000 00004D00 79002000 43006100  |......M.y. .C.a.|
; HEADERS-NEXT:   0020: 70007400 69006F00 6E000000           |p.t.i.o.n...|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 5
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 32
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 27452301  |............'E#.|
; HEADERS-NEXT:   0010: 00000000 01000000 09000000 00000000  |................|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 6
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 24
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 27452301 00000000 00000000 01000000  |'E#.............|
; HEADERS-NEXT:   0010: 09000000 00000000                    |........|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 7
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 42
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 40008880  |............@...|
; HEADERS-NEXT:   0010: 00000800 07000600 05000000 00000000  |................|
; HEADERS-NEXT:   0020: 32000000 00016100 0000               |2.....a...|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 8
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 36
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 40008880 00000000 00000800 07000600  |@...............|
; HEADERS-NEXT:   0010: 05000000 00000000 32006100 61006100  |........2.a.a.a.|
; HEADERS-NEXT:   0020: 61000000                             |a...|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 9
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 42
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 40008880  |............@...|
; HEADERS-NEXT:   0010: 00000800 07000600 05000000 00000000  |................|
; HEADERS-NEXT:   0020: 32000000 00016100 0000               |2.....a...|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 10
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 36
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 40008880 00000000 00000800 07000600  |@...............|
; HEADERS-NEXT:   0010: 05000000 00000000 32006100 61006100  |........2.a.a.a.|
; HEADERS-NEXT:   0020: 61000000                             |a...|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 11
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 48
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 40008880  |............@...|
; HEADERS-NEXT:   0010: 00000100 02000300 04000000 00000000  |................|
; HEADERS-NEXT:   0020: 32003300 00014600 4F004E00 54000000  |2.3...F.O.N.T...|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 12
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 48
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 40008880  |............@...|
; HEADERS-NEXT:   0010: 00000100 02000300 04000000 00000000  |................|
; HEADERS-NEXT:   0020: 32003300 01014600 4F004E00 54000000  |2.3...F.O.N.T...|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 13
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 48
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 40008880  |............@...|
; HEADERS-NEXT:   0010: 00000100 02000300 04000000 00000000  |................|
; HEADERS-NEXT:   0020: 32003300 01354600 4F004E00 54000000  |2.3..5F.O.N.T...|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 14
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 62
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 4000C880  |............@...|
; HEADERS-NEXT:   0010: 00000100 01000100 01000000 00004300  |..............C.|
; HEADERS-NEXT:   0020: 41005000 54004900 4F004E00 00002A00  |A.P.T.I.O.N...*.|
; HEADERS-NEXT:   0030: 00000001 46004F00 4E005400 0000      |....F.O.N.T...|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 15
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 50
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 4000C880 00000000 00000100 01000100  |@...............|
; HEADERS-NEXT:   0010: 01000000 00004300 41005000 54004900  |......C.A.P.T.I.|
; HEADERS-NEXT:   0020: 4F004E00 00002A00 46004F00 4E005400  |O.N...*.F.O.N.T.|
; HEADERS-NEXT:   0030: 0000                                 |..|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 16
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 62
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 4000C000  |............@...|
; HEADERS-NEXT:   0010: 00000200 02000200 02000000 00004300  |..............C.|
; HEADERS-NEXT:   0020: 41005000 54004900 4F004E00 00002A00  |A.P.T.I.O.N...*.|
; HEADERS-NEXT:   0030: 00000001 46004F00 4E005400 0000      |....F.O.N.T...|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 17
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 50
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 4000C000 00000000 00000200 02000200  |@...............|
; HEADERS-NEXT:   0010: 02000000 00004300 41005000 54004900  |......C.A.P.T.I.|
; HEADERS-NEXT:   0020: 4F004E00 00002A00 46004F00 4E005400  |O.N...*.F.O.N.T.|
; HEADERS-NEXT:   0030: 0000                                 |..|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 18
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 46
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 0000C000  |................|
; HEADERS-NEXT:   0010: 00000300 03000300 03000000 00004300  |..............C.|
; HEADERS-NEXT:   0020: 41005000 54004900 4F004E00 0000      |A.P.T.I.O.N...|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 19
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 38
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0000C000 00000000 00000300 03000300  |................|
; HEADERS-NEXT:   0010: 03000000 00004300 41005000 54004900  |......C.A.P.T.I.|
; HEADERS-NEXT:   0020: 4F004E00 0000                        |O.N...|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 20
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 32
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 00FF00FF  |................|
; HEADERS-NEXT:   0010: 00000400 04000400 04000000 00000000  |................|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 21
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 24
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 00FF00FF 00000000 00000400 04000400  |................|
; HEADERS-NEXT:   0010: 04000000 00000000                    |........|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 22
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 32
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 BF00FF00  |................|
; HEADERS-NEXT:   0010: 00000400 04000400 04000000 00000000  |................|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 23
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 24
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: BF00FF00 00000000 00000400 04000400  |................|
; HEADERS-NEXT:   0010: 04000000 00000000                    |........|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 24
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 32
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 0000C000  |................|
; HEADERS-NEXT:   0010: 00000500 05000500 05000000 00000000  |................|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 25
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 24
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0000C000 00000000 00000500 05000500  |................|
; HEADERS-NEXT:   0010: 05000000 00000000                    |........|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 26
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 32
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 05000000 00000000 00008880  |................|
; HEADERS-NEXT:   0010: 00000100 02000300 04000000 00000000  |................|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 27
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 44
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 00000000 00008880  |................|
; HEADERS-NEXT:   0010: 00000500 05000500 05000000 46006F00  |............F.o.|
; HEADERS-NEXT:   0020: 6F006200 61007200 00000000           |o.b.a.r.....|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 28
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 26
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 00008880 00000000 00000500 05000500  |................|
; HEADERS-NEXT:   0010: 05000000 FFFF2A00 0000               |......*...|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 29
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 32
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 67452301 00008880  |........gE#.....|
; HEADERS-NEXT:   0010: 00000000 01000000 09000000 00000000  |................|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 30
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 24
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 00008880 67452301 00000000 01000000  |....gE#.........|
; HEADERS-NEXT:   0010: 09000000 00000000                    |........|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 31
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 32
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 0100FFFF 00000000 67452301 10325476  |........gE#..2Tv|
; HEADERS-NEXT:   0010: 00000000 01000000 09000000 00000000  |................|
; HEADERS-NEXT: )

; HEADERS-DAG: Resource type (int): DIALOG (ID 5)
; HEADERS-NEXT: Resource name (int): 32
; HEADERS-NEXT: Data version: 0
; HEADERS-NEXT: Memory flags: 0x1030
; HEADERS-NEXT: Language ID: 1033
; HEADERS-NEXT: Version (major): 0
; HEADERS-NEXT: Version (minor): 0
; HEADERS-NEXT: Characteristics: 0
; HEADERS-NEXT: Data size: 24
; HEADERS-NEXT: Data: (
; HEADERS-NEXT:   0000: 10325476 56341200 00000000 01000000  |.2TvV4..........|
; HEADERS-NEXT:   0010: 09000000 00000000                    |........|
; HEADERS-NEXT: )


; RUN: not llvm-rc -no-preprocess /FO %t -- %p/Inputs/tag-dialog-large-coord.rc 2>&1 | FileCheck %s --check-prefix COORD1

; COORD1: llvm-rc: Error in DIALOGEX statement (ID 1):
; COORD1-NEXT: Dialog x-coordinate (50000) does not fit in 16-bit signed integer type.


; RUN: not llvm-rc -no-preprocess /FO %t -- %p/Inputs/tag-dialog-large-coord-neg.rc 2>&1 | FileCheck %s --check-prefix COORD2

; COORD2: llvm-rc: Error in DIALOG statement (ID 1):
; COORD2-NEXT: Dialog y-coordinate (-40000) does not fit in 16-bit signed integer type.


; RUN: not llvm-rc -no-preprocess /FO %t -- %p/Inputs/tag-dialog-large-size.rc 2>&1 | FileCheck %s --check-prefix COORD3

; COORD3: llvm-rc: Error in DIALOGEX statement (ID 1):
; COORD3-NEXT: Dialog height (32768) does not fit in 16-bit signed integer type.


; RUN: not llvm-rc -no-preprocess /FO %t -- %p/Inputs/tag-dialog-negative-size.rc 2>&1 | FileCheck %s --check-prefix COORD4

; COORD4: llvm-rc: Error in DIALOGEX statement (ID 1):
; COORD4-NEXT: Dialog width (-50) cannot be negative.


; RUN: not llvm-rc -no-preprocess /FO %t -- %p/Inputs/tag-dialog-ctl-large-coord.rc 2>&1 | FileCheck %s --check-prefix CTL-COORD1

; CTL-COORD1: llvm-rc: Error in DIALOGEX statement (ID 1):
; CTL-COORD1-NEXT: Error in LTEXT control (ID 1):
; CTL-COORD1-NEXT: Dialog control x-coordinate (44444) does not fit in 16-bit signed integer type.


; RUN: not llvm-rc -no-preprocess /FO %t -- %p/Inputs/tag-dialog-ctl-large-coord-neg.rc 2>&1 | FileCheck %s --check-prefix CTL-COORD2

; CTL-COORD2: llvm-rc: Error in DIALOG statement (ID 1):
; CTL-COORD2-NEXT: Error in LTEXT control (ID 1):
; CTL-COORD2-NEXT: Dialog control y-coordinate (-32769) does not fit in 16-bit signed integer type.


; RUN: not llvm-rc -no-preprocess /FO %t -- %p/Inputs/tag-dialog-ctl-large-size.rc 2>&1 | FileCheck %s --check-prefix CTL-COORD3

; CTL-COORD3: llvm-rc: Error in DIALOGEX statement (ID 1):
; CTL-COORD3-NEXT: Error in LTEXT control (ID 1):
; CTL-COORD3-NEXT: Dialog control width (40000) does not fit in 16-bit signed integer type.


; RUN: not llvm-rc -no-preprocess /FO %t -- %p/Inputs/tag-dialog-ctl-negative-size.rc 2>&1 | FileCheck %s --check-prefix CTL-COORD4

; CTL-COORD4: llvm-rc: Error in DIALOG statement (ID 1):
; CTL-COORD4-NEXT: Error in LTEXT control (ID 1):
; CTL-COORD4-NEXT: Dialog control height (-700) cannot be negative.


; RUN: not llvm-rc -no-preprocess /FO %t -- %p/Inputs/tag-dialog-ctl-large-id.rc 2>&1 | FileCheck %s --check-prefix CTL-ID

; CTL-ID: llvm-rc: Error in DIALOG statement (ID 5):
; CTL-ID-NEXT: Error in RTEXT control (ID 100000):
; CTL-ID-NEXT: Control ID in simple DIALOG resource (100000) does not fit in 16 bits.


; RUN: not llvm-rc -no-preprocess /FO %t -- %p/Inputs/tag-dialog-ctl-large-ref-id.rc 2>&1 | FileCheck %s --check-prefix CTL-REF-ID

; CTL-REF-ID: llvm-rc: Error in DIALOGEX statement (ID 1):
; CTL-REF-ID-NEXT: Error in CTEXT control (ID 42):
; CTL-REF-ID-NEXT: Control reference ID (65536) does not fit in 16 bits.


; RUN: not llvm-rc -no-preprocess /FO %t -- %p/Inputs/tag-dialog-bad-style.rc 2>&1 | FileCheck %s --check-prefix STYLE

; STYLE: llvm-rc: Error in DIALOG statement (ID 1):
; STYLE-NEXT: 16 higher bits of DIALOG resource style cannot be equal to 0xFFFF