1 RUN: not llvm-nm %p/Inputs/tapi-invalid-v1.tbd 2>&1\
2 RUN: | FileCheck %s -check-prefix V1
4 RUN: not llvm-nm %p/Inputs/tapi-invalid-v2.tbd 2>&1\
5 RUN: | FileCheck %s -check-prefix V2
7 RUN: not llvm-nm %p/Inputs/tapi-invalid-v3.tbd 2>&1\
8 RUN: | FileCheck %s -check-prefix V3
11 V1: tapi-invalid-v1.tbd: malformed file
12 V1-NEXT: tapi-invalid-v1.tbd:11:1: error: unknown key 'expors'
14 # Missing required key
15 V2: tapi-invalid-v2.tbd: malformed file
16 V2-NEXT: tapi-invalid-v2.tbd:2:1: error: missing required key 'archs'
18 # v2 key in v3 specified file
19 V3: tapi-invalid-v3.tbd: malformed file
20 V3-NEXT: tapi-invalid-v3.tbd:19:1: error: unknown key 'swift-version'