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
5 # RUN: yaml2obj %s -o %t.foo
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
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
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
29 # CHECK: error: --preserve-dates requires a file