• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Test llvm-ar errors when thin archive members are missing.
2
3# RUN: rm -rf %t-archive.a
4# RUN: echo contents > %t-temp.txt
5
6## File is not in archive.
7# RUN: llvm-ar qT %t-archive.a
8# RUN: not llvm-ar p %t-archive.a %t-temp.txt 2>&1 | FileCheck %s -DPATH=%t-temp.txt --check-prefix=MISSING
9
10# MISSING: error: '[[PATH]]' was not found
11
12## File has been deleted.
13# RUN: llvm-ar qT %t-archive.a %t-temp.txt
14# RUN: rm %t-temp.txt
15# RUN: not llvm-ar p %t-archive.a 2>&1 | FileCheck %s --check-prefix=DELETED
16
17# DELETED: error: {{[Nn]}}o such file or directory
18