Debian Codegraph @

flang/test/Driver/missing-arg.f90

raw
1 ! Make sure that frontend driver options that require arguments are
2 ! correctly rejected when the argument value is missing.
3
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
15
16 ! CHECK: error: argument to '-{{.*}}' is missing (expected 1 value)