1 ## Test llvm-strip using the same input file more than once.
2 ## When using stdin ('-') more than once llvm-strip should give an error
3 ## while a file more than once should be simply a warning.
5 # RUN: yaml2obj %s -o %t
7 # RUN: not llvm-strip - - < %t 2>&1 | FileCheck -check-prefix=ERR %s
8 # RUN: not llvm-strip - %t - < %t 2>&1 | FileCheck -check-prefix=ERR %s
10 # ERR: error: cannot specify '-' as an input file more than once
13 # RUN: llvm-strip %t %t %t %t2 %t2 2>&1 | FileCheck -check-prefix=WARN %s -DFILE=%t -DFILE2=%t2
15 # WARN: warning: '[[FILE]]' was already specified
16 # WARN-NEXT: warning: '[[FILE2]]' was already specified