1## This tests for an expected error when --preserve-dates is 2## specified at the same time as using stdin or stdout as input or 3## output files. 4 5# RUN: yaml2obj %s -o %t.foo 6 7--- !ELF 8FileHeader: 9 Class: ELFCLASS64 10 Data: ELFDATA2LSB 11 Type: ET_DYN 12 Machine: EM_X86_64 13... 14 15# RUN: not llvm-objcopy --preserve-dates - %t 2>&1 | FileCheck %s 16# RUN: not llvm-objcopy --preserve-dates %t.foo - 2>&1 | FileCheck %s 17 18## Test that llvm-strip reports a proper error when --preserve-dates is specified 19## with one or more inputs, where one of them is stdin. 20# RUN: not llvm-strip --preserve-dates - < %t.foo 2>&1 | FileCheck %s 21# RUN: not llvm-strip --preserve-dates %t.foo - < %t.foo 2>&1 | FileCheck %s 22# RUN: not llvm-strip --preserve-dates - %t.foo < %t.foo 2>&1 | FileCheck %s 23# RUN: not llvm-strip --preserve-dates %t.foo - %t.foo < %t.foo 2>&1 | FileCheck %s 24 25## Testing -o. 26# RUN: not llvm-strip --preserve-dates - -o %t.foo < %t.foo 2>&1 | FileCheck %s 27# RUN: not llvm-strip --preserve-dates %t.foo -o - < %t.foo 2>&1 | FileCheck %s 28 29# CHECK: error: --preserve-dates requires a file 30