| 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=experimental-ifs-v1 %s 2>&1 | \ |
| 11 |
// RUN: FileCheck -check-prefix=CHECK-V1-DEPRECATED %s |
| 12 |
|
| 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 |
| 15 |
|
| 16 |
// RUN: not %clang -emit-interface-stubs -interface-stub-version=bad-format %s 2>&1 | \ |
| 17 |
// RUN: FileCheck %s |
| 18 |
|
| 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 |
| 22 |
|
| 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 |
| 26 |
|
| 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' |
| 31 |
|
| 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' |
| 37 |
|
| 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' |
| 43 |
|
| 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' |
| 49 |
|
| 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' |