1# REQUIRES: x86 2# RUN: mkdir -p %t/invalidYAML.framework 3# RUN: echo "--- !tapi-tbd-v3" > %t/libinvalidYAML.tbd 4# RUN: echo "invalid YAML" >> %t/libinvalidYAML.tbd 5# RUN: cp %t/libinvalidYAML.tbd %t/invalidYAML.framework/invalidYAML.tbd 6# RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %s -o %t/test.o 7# RUN: not %lld -L%t -linvalidYAML %t/test.o -o %t/test 2>&1 | FileCheck %s -DDIR=%t 8# RUN: not %lld -F%t -framework invalidYAML %t/test.o -o %t/test 2>&1 | FileCheck %s -DDIR=%t --check-prefix=CHECK-FRAMEWORK 9 10# CHECK: could not load TAPI file at [[DIR]]{{[\\/]}}libinvalidYAML.tbd: unsupported file type 11# CHECK-FRAMEWORK: could not load TAPI file at [[DIR]]{{[\\/]}}invalidYAML.framework{{[\\/]}}invalidYAML.tbd: unsupported file type 12.globl _main 13_main: 14 ret 15