bolt/deps/llvm-18.1.8/flang/test/Driver/missing-arg.f90
2025-02-14 19:21:04 +01:00

16 lines
684 B
Fortran

! Make sure that frontend driver options that require arguments are
! correctly rejected when the argument value is missing.
!-----------
! RUN lines
!-----------
! RUN: not %flang_fc1 -E %s -o 2>&1 | FileCheck %s
! RUN: not %flang_fc1 -E %s -U 2>&1 | FileCheck %s
! RUN: not %flang_fc1 -E %s -D 2>&1 | FileCheck %s
! RUN: not %flang_fc1 -E %s -I 2>&1 | FileCheck %s
! RUN: not %flang_fc1 -E %s -J 2>&1 | FileCheck %s
! RUN: not %flang_fc1 -E %s -module-dir 2>&1 | FileCheck %s
! RUN: not %flang_fc1 -E %s -module-suffix 2>&1 | FileCheck %s
! RUN: not %flang_fc1 -E %s -fintrinsic-modules-path 2>&1 | FileCheck %s
! CHECK: error: argument to '-{{.*}}' is missing (expected 1 value)