[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / InterfaceStubs / bad-format.cpp
blob9701bed86e3a22b7fba6488fc1844a93c269fb22
1 // RUN: not %clang -emit-interface-stubs -interface-stub-version=bad-format %s 2>&1 | \
2 // RUN: FileCheck %s
4 // RUN: not %clang -emit-interface-stubs -interface-stub-version=experimental-tapi-elf-v1 %s 2>&1 | \
5 // RUN: FileCheck -check-prefix=CHECK-TAPI-DEPRECATED %s
7 // RUN: not %clang -emit-interface-stubs -interface-stub-version=experimental-yaml-elf-v1 %s 2>&1 | \
8 // RUN: FileCheck -check-prefix=CHECK-YAML-DEPRECATED %s
10 // RUN: not %clang -emit-interface-stubs -interface-stub-version=experimental-ifs-v1 %s 2>&1 | \
11 // RUN: FileCheck -check-prefix=CHECK-V1-DEPRECATED %s
13 // RUN: not %clang -emit-interface-stubs -interface-stub-version=experimental-ifs-v2 %s 2>&1 | \
14 // RUN: FileCheck -check-prefix=CHECK-V2-DEPRECATED %s
16 // RUN: not %clang -emit-interface-stubs -interface-stub-version=bad-format %s 2>&1 | \
17 // RUN: FileCheck %s
19 // RUN: not %clang -emit-interface-stubs \
20 // RUN: -interface-stub-version=experimental-tapi-elf-v1 %s 2>&1 | \
21 // RUN: FileCheck -check-prefix=CHECK-TAPI-DEPRECATED %s
23 // RUN: not %clang -emit-interface-stubs \
24 // RUN: -interface-stub-version=experimental-yaml-elf-v1 %s 2>&1 | \
25 // RUN: FileCheck -check-prefix=CHECK-YAML-DEPRECATED %s
27 // CHECK: error: invalid value
28 // CHECK: 'Invalid interface stub format: bad-format.' in 'Must specify a
29 // CHECK: valid interface stub format type, ie:
30 // CHECK: -interface-stub-version=ifs-v1'
32 // CHECK-TAPI-DEPRECATED: error: invalid value
33 // CHECK-TAPI-DEPRECATED: 'Invalid interface stub format:
34 // CHECK-TAPI-DEPRECATED: experimental-tapi-elf-v1 is deprecated.' in 'Must
35 // CHECK-TAPI-DEPRECATED: specify a valid interface stub format type, ie:
36 // CHECK-TAPI-DEPRECATED: -interface-stub-version=ifs-v1'
38 // CHECK-YAML-DEPRECATED: error: invalid value
39 // CHECK-YAML-DEPRECATED: 'Invalid interface stub format:
40 // CHECK-YAML-DEPRECATED: experimental-yaml-elf-v1 is deprecated.' in 'Must
41 // CHECK-YAML-DEPRECATED: specify a valid interface stub format type, ie:
42 // CHECK-YAML-DEPRECATED: -interface-stub-version=ifs-v1'
44 // CHECK-V1-DEPRECATED: error: invalid value
45 // CHECK-V1-DEPRECATED: 'Invalid interface stub format:
46 // CHECK-V1-DEPRECATED: experimental-ifs-v1 is deprecated.' in 'Must
47 // CHECK-V1-DEPRECATED: specify a valid interface stub format type, ie:
48 // CHECK-V1-DEPRECATED: -interface-stub-version=ifs-v1'
50 // CHECK-V2-DEPRECATED: error: invalid value
51 // CHECK-V2-DEPRECATED: 'Invalid interface stub format:
52 // CHECK-V2-DEPRECATED: experimental-ifs-v2 is deprecated.' in 'Must
53 // CHECK-V2-DEPRECATED: specify a valid interface stub format type, ie:
54 // CHECK-V2-DEPRECATED: -interface-stub-version=ifs-v1'