1 // RUN: not %clang -emit-interface-stubs -interface-stub-version=bad-format %s 2>&1 | \
2 // RUN: FileCheck %s
3 
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
6 
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
9 
10 // RUN: not %clang -emit-interface-stubs -interface-stub-version=bad-format %s 2>&1 | \
11 // RUN: FileCheck %s
12 
13 // RUN: not %clang -emit-interface-stubs \
14 // RUN: -interface-stub-version=experimental-tapi-elf-v1 %s 2>&1 | \
15 // RUN: FileCheck -check-prefix=CHECK-TAPI-DEPRECATED %s
16 
17 // RUN: not %clang -emit-interface-stubs \
18 // RUN: -interface-stub-version=experimental-yaml-elf-v1 %s 2>&1 | \
19 // RUN: FileCheck -check-prefix=CHECK-YAML-DEPRECATED %s
20 
21 // CHECK: error: invalid value
22 // CHECK: 'Invalid interface stub format: bad-format.' in 'Must specify a
23 // CHECK: valid interface stub format type, ie:
24 // CHECK: -interface-stub-version=experimental-ifs-v1'
25 
26 // CHECK-TAPI-DEPRECATED: error: invalid value
27 // CHECK-TAPI-DEPRECATED: 'Invalid interface stub format:
28 // CHECK-TAPI-DEPRECATED: experimental-tapi-elf-v1 is deprecated.' in 'Must
29 // CHECK-TAPI-DEPRECATED: specify a valid interface stub format type, ie:
30 // CHECK-TAPI-DEPRECATED: -interface-stub-version=experimental-ifs-v1'
31 
32 // CHECK-YAML-DEPRECATED: error: invalid value
33 // CHECK-YAML-DEPRECATED: 'Invalid interface stub format:
34 // CHECK-YAML-DEPRECATED: experimental-yaml-elf-v1 is deprecated.' in 'Must
35 // CHECK-YAML-DEPRECATED: specify a valid interface stub format type, ie:
36 // CHECK-YAML-DEPRECATED: -interface-stub-version=experimental-ifs-v1'
37