xref: /llvm-project/flang/test/Driver/fixed-free-flag.f90 (revision d5d420bb3bcc2eea926fb70fc3e6818c32e1eecc)
1! Ensure arguments -ffree-form and -ffixed-form work as expected.
2
3!--------------------------
4! FLANG DRIVER (flang)
5!--------------------------
6! RUN: not %flang -fsyntax-only -ffree-form %S/Inputs/fixed-form-test.f  2>&1 | FileCheck %s --check-prefix=FREEFORM
7! RUN: %flang -fsyntax-only -ffixed-form %S/Inputs/free-form-test.f90 2>&1 | FileCheck %s --check-prefix=FIXEDFORM
8
9!----------------------------------------
10! FRONTEND FLANG DRIVER (flang -fc1)
11!----------------------------------------
12! RUN: not %flang_fc1 -fsyntax-only -ffree-form %S/Inputs/fixed-form-test.f  2>&1 | FileCheck %s --check-prefix=FREEFORM
13! RUN: %flang_fc1 -fsyntax-only -ffixed-form %S/Inputs/free-form-test.f90 2>&1 | FileCheck %s --check-prefix=FIXEDFORM
14
15! FREEFORM: Could not parse
16
17! FIXEDFORM:free-form-test.f90:1:1: warning: Character in fixed-form label field must be a digit
18