blob: 44c5b8a9318216a1d47eda4662835a7b35486793 [file] [log] [blame]
Caroline Concatto257b2972020-09-11 09:17:311
Emil Kieri577827c2022-03-28 18:28:512! RUN: %flang --version 2>&1 | FileCheck %s --check-prefix=VERSION
Andrzej Warzynski808a5a22021-04-09 10:32:313! RUN: not %flang --versions 2>&1 | FileCheck %s --check-prefix=ERROR
Emil Kieri577827c2022-03-28 18:28:514! 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
Andrzej Warzynski808a5a22021-04-09 10:32:316
Emil Kieri577827c2022-03-28 18:28:517! VERSION: flang-new version
8! VERSION-NEXT: Target:
9! VERSION-NEXT: Thread model:
10! VERSION-NEXT: InstalledDir:
Caroline Concatto257b2972020-09-11 09:17:3111
Andrzej Warzynski8d51d372020-10-05 16:42:0012! ERROR: flang-new: error: unsupported option '--versions'; did you mean '--version'?
Emil Kieri577827c2022-03-28 18:28:5113
14! VERSION-FC1: LLVM version
15
16! ERROR-FC1: error: unknown argument '--version'; did you mean '-version'?