xref: /llvm-project/lld/test/ELF/version.test (revision 649cdfc4b6781a350dfc87d9b2a4b5a4c3395909)
1## --version skips input file processing.
2# RUN: ld.lld --version %t/not-exist 2>&1 | FileCheck %s
3
4## -v/-V don't skip processing if there is any input.
5# RUN: ld.lld -v 2>&1 | FileCheck %s
6# RUN: not ld.lld -v %t/not-exist 2>&1 | FileCheck %s
7# RUN: ld.lld -V 2>&1 | FileCheck %s
8# RUN: not ld.lld -V %t/not-exist 2>&1 | FileCheck %s
9
10# CHECK: LLD {{.+}} (compatible with GNU linkers)
11