From 32ba349f0a229141590b386759d728f9ca47075a Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Mon, 13 Sep 2021 00:49:30 +0000 Subject: [PATCH] compilers: Use standards compliant test --- mesonbuild/compilers/fortran.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py index c89069181..639c40fb4 100644 --- a/mesonbuild/compilers/fortran.py +++ b/mesonbuild/compilers/fortran.py @@ -72,7 +72,7 @@ class FortranCompiler(CLikeCompiler, Compiler): if binary_name.is_file(): binary_name.unlink() - source_name.write_text('print *, "Fortran compilation is working."; end', encoding='utf-8') + source_name.write_text('program main; print *, "Fortran compilation is working."; end program', encoding='utf-8') extra_flags: T.List[str] = [] extra_flags += environment.coredata.get_external_args(self.for_machine, self.language)