[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Driver / driver-version.f90
blobc3569be12a1a07d1f105e084c8b74cda25208dd2
2 !-----------
3 ! RUN LINES
4 !-----------
5 ! RUN: %flang --version 2>&1 | FileCheck %s
6 ! RUN: not %flang --versions 2>&1 | FileCheck %s --check-prefix=ERROR
8 !-----------------------
9 ! EXPECTED OUTPUT
10 !-----------------------
11 ! CHECK: flang-new version
12 ! CHECK-NEXT: Target:
13 ! CHECK-NEXT: Thread model:
14 ! CHECK-NEXT: InstalledDir:
16 ! ERROR: flang-new: error: unsupported option '--versions'; did you mean '--version'?