1; RUN: llvm-pdbutil bytes -stream-data=1 %p/Inputs/empty.pdb | FileCheck --check-prefix=STREAM %s 2; RUN: llvm-pdbutil bytes -stream-data=100 %p/Inputs/empty.pdb 2>&1 | FileCheck --check-prefix=INVALIDSTREAM %s 3; RUN: llvm-pdbutil bytes -stream-data=1,100 %p/Inputs/empty.pdb 2>&1 | FileCheck --check-prefix=BOTH %s 4 5; RUN: llvm-pdbutil bytes -stream-data=1:10 %p/Inputs/empty.pdb | FileCheck --check-prefix=OFFSET %s 6; RUN: llvm-pdbutil bytes -stream-data=1@20 %p/Inputs/empty.pdb | FileCheck --check-prefix=SIZED %s 7; RUN: llvm-pdbutil bytes -stream-data=1:8@20 %p/Inputs/empty.pdb | FileCheck --check-prefix=SLICE %s 8; RUN: llvm-pdbutil bytes -stream-data=1:0x8@0x14 %p/Inputs/empty.pdb | FileCheck --check-prefix=SLICE %s 9; RUN: llvm-pdbutil bytes -stream-data=2:4050@100 %p/Inputs/empty.pdb 2>&1 | FileCheck --check-prefix=DISCONTINUITY %s 10 11STREAM: Stream Data 12STREAM-NEXT: ============================================================ 13STREAM-NEXT: Stream 1: PDB Stream (dumping 118 / 118 bytes) 14STREAM-NEXT: Data ( 15STREAM-NEXT: 13000: 942E3101 E207E554 01000000 0B355641 86A0A249 896F9988 FAE52FF0 22000000 |..1....T.....5VA...I.o..../."...| 16STREAM-NEXT: 13020: 2F4C696E 6B496E66 6F002F6E 616D6573 002F7372 632F6865 61646572 626C6F63 |/LinkInfo./names./src/headerbloc| 17STREAM-NEXT: 13040: 6B000300 00000600 00000100 00001A00 00000000 00001100 00000900 00000A00 |k...............................| 18STREAM-NEXT: 13060: 00000D00 00000000 00000500 00000000 00004191 3201 |..................A.2.| 19STREAM-NEXT: ) 20 21INVALIDSTREAM: Stream Data 22INVALIDSTREAM-NEXT: ============================================================ 23INVALIDSTREAM-NEXT: Stream 100: Not present 24 25BOTH: Stream Data 26BOTH-NEXT: ============================================================ 27BOTH-NEXT: Stream 1: PDB Stream (dumping 118 / 118 bytes) 28BOTH-NEXT: Data ( 29BOTH-NEXT: 13000: 942E3101 E207E554 01000000 0B355641 86A0A249 896F9988 FAE52FF0 22000000 |..1....T.....5VA...I.o..../."...| 30BOTH-NEXT: 13020: 2F4C696E 6B496E66 6F002F6E 616D6573 002F7372 632F6865 61646572 626C6F63 |/LinkInfo./names./src/headerbloc| 31BOTH-NEXT: 13040: 6B000300 00000600 00000100 00001A00 00000000 00001100 00000900 00000A00 |k...............................| 32BOTH-NEXT: 13060: 00000D00 00000000 00000500 00000000 00004191 3201 |..................A.2.| 33BOTH-NEXT: ) 34BOTH-NEXT: Stream 100: Not present 35 36OFFSET: Stream Data 37OFFSET-NEXT: ============================================================ 38OFFSET-NEXT: Stream 1: PDB Stream (dumping 108 / 118 bytes) 39OFFSET-NEXT: Data ( 40OFFSET-NEXT: 1300A: 00000B35 564186A0 A249896F 9988FAE5 2FF02200 00002F4C 696E6B49 6E666F00 |...5VA...I.o..../.".../LinkInfo.| 41OFFSET-NEXT: 1302A: 2F6E616D 6573002F 7372632F 68656164 6572626C 6F636B00 03000000 06000000 |/names./src/headerblock.........| 42OFFSET-NEXT: 1304A: 01000000 1A000000 00000000 11000000 09000000 0A000000 0D000000 00000000 |................................| 43OFFSET-NEXT: 1306A: 05000000 00000000 41913201 |........A.2.| 44OFFSET-NEXT: ) 45 46SIZED: Stream Data 47SIZED-NEXT: ============================================================ 48SIZED-NEXT: Stream 1: PDB Stream (dumping 20 / 118 bytes) 49SIZED-NEXT: Data ( 50SIZED-NEXT: 13000: 942E3101 E207E554 01000000 0B355641 86A0A249 |..1....T.....5VA...I| 51SIZED-NEXT: ) 52 53SLICE: Stream Data 54SLICE-NEXT: ============================================================ 55SLICE-NEXT: Stream 1: PDB Stream (dumping 20 / 118 bytes) 56SLICE-NEXT: Data ( 57SLICE-NEXT: 13008: 01000000 0B355641 86A0A249 896F9988 FAE52FF0 |.....5VA...I.o..../.| 58SLICE-NEXT: ) 59 60DISCONTINUITY: Stream Data 61DISCONTINUITY-NEXT: ============================================================ 62DISCONTINUITY-NEXT: Stream 2: TPI Stream (dumping 100 / 5,392 bytes) 63DISCONTINUITY-NEXT: Data ( 64DISCONTINUITY-NEXT: 12FD2: 65537472 75637455 73616765 00F10215 03000480 00002000 654C6F63 616C5573 |eStructUsage.......... .eLocalUs| 65DISCONTINUITY-NEXT: 12FF2: 61676500 F2F10215 03000480 0000 |age...........| 66DISCONTINUITY-NEXT: -------------------------------------------------<discontinuity>-------------------------------------------------- 67DISCONTINUITY-NEXT: 11000: 40006550 726F7065 72747955 73616765 00F3F2F1 02150300 04800000 80006545 |@.ePropertyUsage..............eE| 68DISCONTINUITY-NEXT: 11020: 76656E74 55736167 6500F2F1 02150300 04800000 0001 |ventUsage.............| 69DISCONTINUITY-NEXT: ) 70