aboutsummaryrefslogtreecommitdiff
path: root/test cases/fortran
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-05-07 16:42:24 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2019-05-16 22:01:35 +0300
commit7f1cecf25b4e78df44dde1ed071088e50d7370a3 (patch)
tree51bbc15f2d79a24e54297de2843f0582cccec767 /test cases/fortran
parent67a5af99aa9060c9f4b2350a230343b11282cb8f (diff)
downloadmeson-7f1cecf25b4e78df44dde1ed071088e50d7370a3.zip
meson-7f1cecf25b4e78df44dde1ed071088e50d7370a3.tar.gz
meson-7f1cecf25b4e78df44dde1ed071088e50d7370a3.tar.bz2
compilers/fortran: Fix all has_argument methods in meson
Apparently we have no tests for this because this is broken pretty badly. This extends the basic test to actually check for the correct free-form argument and thus test this.
Diffstat (limited to 'test cases/fortran')
-rw-r--r--test cases/fortran/1 basic/meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/test cases/fortran/1 basic/meson.build b/test cases/fortran/1 basic/meson.build
index 959ad35..52e2d6f 100644
--- a/test cases/fortran/1 basic/meson.build
+++ b/test cases/fortran/1 basic/meson.build
@@ -5,6 +5,9 @@ if fc.get_id() == 'gcc'
add_global_arguments('-fbounds-check', language : 'fortran')
endif
+args = fc.first_supported_argument(['-ffree-form', '-free', '/free'])
+assert(args != [], 'No arguments found?')
+
e = executable('simple', 'simple.f90',
- fortran_args : '-ffree-form')
+ fortran_args : args)
test('Simple Fortran', e)