1 // REQUIRES: x86-registered-target 2 // RUN: not %clang -target x86_64-linux-gnu -o - -emit-interface-stubs \ 3 // RUN: -interface-stub-version=bar-format %s 2>&1 | FileCheck %s 4 5 // RUN: not %clang -target x86_64-linux-gnu -o - -emit-interface-stubs \ 6 // RUN: -interface-stub-version=experimental-tapi-elf-v1 %s 2>&1 | \ 7 // RUN: FileCheck -check-prefix=CHECK-TAPI-DEPRECATED %s 8 9 // RUN: not %clang -target x86_64-linux-gnu -o - -emit-interface-stubs \ 10 // RUN: -interface-stub-version=experimental-yaml-elf-v1 %s 2>&1 | \ 11 // RUN: FileCheck -check-prefix=CHECK-YAML-DEPRECATED %s 12 13 // RUN: not %clang_cc1 -target x86_64-linux-gnu -o - -emit-interface-stubs \ 14 // RUN: -interface-stub-version=bar-format %s 2>&1 | FileCheck %s 15 16 // RUN: not %clang_cc1 -target x86_64-linux-gnu -o - -emit-interface-stubs \ 17 // RUN: -interface-stub-version=experimental-tapi-elf-v1 %s 2>&1 | \ 18 // RUN: FileCheck -check-prefix=CHECK-TAPI-DEPRECATED %s 19 20 // RUN: not %clang_cc1 -target x86_64-linux-gnu -o - -emit-interface-stubs \ 21 // RUN: -interface-stub-version=experimental-yaml-elf-v1 %s 2>&1 | \ 22 // RUN: FileCheck -check-prefix=CHECK-YAML-DEPRECATED %s 23 24 // CHECK: error: invalid value 25 // CHECK: 'Invalid interface stub format: bar-format.' in 'Must specify a 26 // CHECK: valid interface stub format type, ie: 27 // CHECK: -interface-stub-version=experimental-ifs-v1' 28 29 // CHECK-TAPI-DEPRECATED: error: invalid value 30 // CHECK-TAPI-DEPRECATED: 'Invalid interface stub format: 31 // CHECK-TAPI-DEPRECATED: experimental-tapi-elf-v1 is deprecated.' in 'Must 32 // CHECK-TAPI-DEPRECATED: specify a valid interface stub format type, ie: 33 // CHECK-TAPI-DEPRECATED: -interface-stub-version=experimental-ifs-v1' 34 35 // CHECK-YAML-DEPRECATED: error: invalid value 36 // CHECK-YAML-DEPRECATED: 'Invalid interface stub format: 37 // CHECK-YAML-DEPRECATED: experimental-yaml-elf-v1 is deprecated.' in 'Must 38 // CHECK-YAML-DEPRECATED: specify a valid interface stub format type, ie: 39 // CHECK-YAML-DEPRECATED: -interface-stub-version=experimental-ifs-v1' 40