[clang] [flang] [flang] Align `-x` language modes with `gfortran` (PR #130268)
IƱaki Amatria Barral via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 7 05:53:26 PST 2025
================
@@ -0,0 +1,12 @@
+! This test verifies that using `-x f95` does not cause the driver to assume
+! this file is in fixed-form.
+
+program main
+ print *, "Hello, World!"
+end
+
+! RUN: %flang -### -x f95 %s 2>&1 | FileCheck --check-prefix=PRINT-PHASES %s
+! PRINT-PHASES-NOT: -ffixed-form
+
+! RUN: %flang -Werror -x f95 %s 2>&1 | FileCheck --check-prefix=COMPILE --allow-empty %s
----------------
inaki-amatria wrote:
Fixed. I added `-fsyntax-only` to ensure this executes flang only
https://github.com/llvm/llvm-project/pull/130268
More information about the cfe-commits
mailing list