15 lines · plain
1# REQUIRES: x862# RUN: mkdir -p %t/invalidYAML.framework3# RUN: echo "--- !tapi-tbd-v3" > %t/libinvalidYAML.tbd4# RUN: echo "invalid YAML" >> %t/libinvalidYAML.tbd5# RUN: cp %t/libinvalidYAML.tbd %t/invalidYAML.framework/invalidYAML.tbd6# RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %s -o %t/test.o7# RUN: not %lld -L%t -linvalidYAML %t/test.o -o %t/test 2>&1 | FileCheck %s -DDIR=%t8# RUN: not %lld -F%t -framework invalidYAML %t/test.o -o %t/test 2>&1 | FileCheck %s -DDIR=%t --check-prefix=CHECK-FRAMEWORK9 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 _main13_main:14 ret15