[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Driver / missing-arg.f90
blob1dca2b9a9f084ec6845606ad92eeddc676bfbca0
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 ! CHECK: error: argument to '-{{.*}}' is missing (expected 1 value)