30 lines · plain
1! Ensure arguments -fd-lines-as-comments and -fd-lines-as-code as expected.2 3!--------------------------4! FLANG DRIVER (flang)5!--------------------------6! Default behavior is equivalent as -fd-lines-as-comments7!--------------------------8! RUN: %flang -fsyntax-only -ffixed-form %s 2>&19! RUN: %flang -fsyntax-only -ffixed-form -fd-lines-as-comments %s 2>&110! RUN: not %flang -fsyntax-only -ffixed-form -fd-lines-as-code %s 2>&1 | FileCheck %s --check-prefix=CODE11! RUN: not %flang -fsyntax-only -ffree-form -fd-lines-as-comments %s 2>&1 | FileCheck %s --check-prefix=WARNING-COMMENTS12! RUN: not %flang -fsyntax-only -ffree-form -fd-lines-as-code %s 2>&1 | FileCheck %s --check-prefix=WARNING-CODE13 14!----------------------------------------15! FRONTEND FLANG DRIVER (flang -fc1)16!----------------------------------------17! RUN: %flang_fc1 -fsyntax-only -ffixed-form %s 2>&118! RUN: %flang_fc1 -fsyntax-only -ffixed-form -fd-lines-as-comments %s 2>&119! RUN: not %flang_fc1 -fsyntax-only -ffixed-form -fd-lines-as-code %s 2>&1 | FileCheck %s --check-prefix=CODE20! RUN: not %flang_fc1 -fsyntax-only -ffree-form -fd-lines-as-comments %s 2>&1 | FileCheck %s --check-prefix=WARNING-COMMENTS21! RUN: not %flang_fc1 -fsyntax-only -ffree-form -fd-lines-as-code %s 2>&1 | FileCheck %s --check-prefix=WARNING-CODE22 23! CODE: Semantic errors24! WARNING-COMMENTS: warning: ‘-fd-lines-as-comments’ has no effect in free form.25! WARNING-CODE: warning: ‘-fd-lines-as-code’ has no effect in free form.26 27 program FixedForm28d end29 end30