1
2! RUN: %flang --version 2>&1 | FileCheck %s --check-prefix=VERSION
3! RUN: not %flang --versions 2>&1 | FileCheck %s --check-prefix=ERROR
4! RUN: %flang_fc1 -version 2>&1 | FileCheck %s --check-prefix=VERSION-FC1
5! RUN: not %flang_fc1 --version 2>&1 | FileCheck %s --check-prefix=ERROR-FC1
6
7! VERSION: flang-new version
8! VERSION-NEXT: Target:
9! VERSION-NEXT: Thread model:
10! VERSION-NEXT: InstalledDir:
11
12! ERROR: flang-new: error: unsupported option '--versions'; did you mean '--version'?
13
14! VERSION-FC1: LLVM version
15
16! ERROR-FC1: error: unknown argument '--version'; did you mean '-version'?
17