[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Driver / missing-arg.f90
blob157fd9d0976d30e45dbb62ebd67994cd2a54fa3c
1 ! Make sure that frontend driver options that require arguments are
2 ! correctly rejected when the argument value is missing.
4 !-----------
5 ! RUN lines
6 !-----------
7 ! RUN: not %flang_fc1 -E %s -o 2>&1 | FileCheck %s
8 ! RUN: not %flang_fc1 -E %s -U 2>&1 | FileCheck %s
9 ! RUN: not %flang_fc1 -E %s -D 2>&1 | FileCheck %s
10 ! RUN: not %flang_fc1 -E %s -I 2>&1 | FileCheck %s
11 ! RUN: not %flang_fc1 -E %s -J 2>&1 | FileCheck %s
12 ! RUN: not %flang_fc1 -E %s -module-dir 2>&1 | FileCheck %s
13 ! RUN: not %flang_fc1 -E %s -module-suffix 2>&1 | FileCheck %s
14 ! RUN: not %flang_fc1 -E %s -fintrinsic-modules-path 2>&1 | FileCheck %s
16 !-----------------------
17 ! EXPECTED OUTPUT
18 !-----------------------
19 ! CHECK: error: argument to '-{{.*}}' is missing (expected 1 value)