1## Unsupported on AIX and FreeBSD as AIX and FreeBSD 12 and earlier allow 2## reading directories by default. 3# UNSUPPORTED: system-freebsd, system-aix 4 5# RUN: rm -rf %t && mkdir -p %t 6 7## Passing in a directory: 8# RUN: mkdir -p %t/tmpDir 9# RUN: not llvm-ar p %t/tmpDir 2>&1 | \ 10# RUN: FileCheck %s --check-prefix=IS-DIR -DARCHIVE=%t/tmpDir 11 12# IS-DIR: error: unable to open '[[ARCHIVE]]': {{[iI]}}s a directory 13