1 ## Show that llvm-size reports an error when passed an input file in an
4 ## FIXME: The error messages tested here are not consistently formatted, and the
5 ## second one doesn't even return with a non-zero exit code.
6 ## See https://bugs.llvm.org/show_bug.cgi?id=42970.
8 # RUN: not llvm-size %s 2>&1 | FileCheck %s -DFILE=%s --check-prefix=UNRECOGNIZED
9 # UNRECOGNIZED: {{.*}}llvm-size{{(.*)}}: [[FILE]] The file was not recognized as a valid object file
11 ## Show that llvm-size reports an error when passed an input file in an
12 ## unsupported format.
14 # RUN: yaml2obj %s -o %t
15 # RUN: llvm-size %t 2>&1 | FileCheck %s -DFILE=%t --check-prefix=NOTSUPPORTED
16 # NOTSUPPORTED: {{.*}}llvm-size{{(.*)}}: [[FILE]]: Unrecognized file type.
22 Content: 11223344556600