forked from OSchip/llvm-project
21 lines
690 B
Plaintext
21 lines
690 B
Plaintext
|
RUN: not llvm-nm %p/Inputs/tapi-invalid-v1.tbd 2>&1\
|
||
|
RUN: | FileCheck %s -check-prefix V1
|
||
|
|
||
|
RUN: not llvm-nm %p/Inputs/tapi-invalid-v2.tbd 2>&1\
|
||
|
RUN: | FileCheck %s -check-prefix V2
|
||
|
|
||
|
RUN: not llvm-nm %p/Inputs/tapi-invalid-v3.tbd 2>&1\
|
||
|
RUN: | FileCheck %s -check-prefix V3
|
||
|
|
||
|
# Typo Check
|
||
|
V1: tapi-invalid-v1.tbd malformed file
|
||
|
V1-NEXT: tapi-invalid-v1.tbd:12:2: error: unknown key 'expors'
|
||
|
|
||
|
# Missing required key
|
||
|
V2: tapi-invalid-v2.tbd malformed file
|
||
|
V2-NEXT: tapi-invalid-v2.tbd:2:1: error: missing required key 'archs'
|
||
|
|
||
|
# v2 key in v3 specified file
|
||
|
V3: tapi-invalid-v3.tbd malformed file
|
||
|
V3-NEXT: tapi-invalid-v3.tbd:19:16: error: unknown key 'swift-version'
|