1 ; Using the existing PDB file (Stripped.pdb).
3 ; -modi is specified more than once: command line error
4 ; RUN: not llvm-pdbutil dump --symbols -modi=1 -modi=1 %p/Inputs/Stripped.pdb > %t 2>&1
5 ; RUN: FileCheck -input-file=%t %s -check-prefix=TWICE
6 ; TWICE: argument '-modi' specified more than once.
8 ; -modi is not specified: process all modules
9 ; RUN: llvm-pdbutil dump --symbols %p/Inputs/Stripped.pdb > %t
10 ; RUN: FileCheck -input-file=%t %s -check-prefix=NONE
13 ; NONE-CHECK: Mod 0000
14 ; NONE-CHECK: Mod 0001
15 ; NONE-CHECK: Mod 0002
17 ; -modi=0: process module with id=0
18 ; RUN: llvm-pdbutil dump --symbols -modi=0 %p/Inputs/Stripped.pdb > %t
19 ; RUN: FileCheck -input-file=%t %s -check-prefix=ZERO
22 ; ZERO-CHECK: Mod 0000
24 ; -modi=1: process module with id=1
25 ; RUN: llvm-pdbutil dump --symbols -modi=1 %p/Inputs/Stripped.pdb > %t
26 ; RUN: FileCheck -input-file=%t %s -check-prefix=ONE
31 ; -modi=2: process module with id=2
32 ; RUN: llvm-pdbutil dump --symbols -modi=2 %p/Inputs/Stripped.pdb > %t
33 ; RUN: FileCheck -input-file=%t %s -check-prefix=TWO