diff options
| author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-02-13 14:09:18 -0500 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-02-13 21:09:18 +0200 |
| commit | ebfb09f5d64b8dbb9d10ae57f71a1d7be7fd9137 (patch) | |
| tree | 70bf292ef9df5c94a2a34f0202a020315802446a /test cases/fortran | |
| parent | df0b734a17c15c3fb202e27b307f78e7f143c18b (diff) | |
| download | meson-ebfb09f5d64b8dbb9d10ae57f71a1d7be7fd9137.tar.gz | |
Fortran 2008/2018 Coarray support
Diffstat (limited to 'test cases/fortran')
| -rw-r--r-- | test cases/fortran/13 coarray/main.f90 | 9 | ||||
| -rw-r--r-- | test cases/fortran/13 coarray/meson.build | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/test cases/fortran/13 coarray/main.f90 b/test cases/fortran/13 coarray/main.f90 new file mode 100644 index 000000000..be60552a7 --- /dev/null +++ b/test cases/fortran/13 coarray/main.f90 @@ -0,0 +1,9 @@ +implicit none + +if (this_image() == 1) print *, 'number of Fortran coarray images:', num_images() + +sync all ! semaphore, ensures message above is printed at top. + +print *, 'Process ', this_image() + +end program diff --git a/test cases/fortran/13 coarray/meson.build b/test cases/fortran/13 coarray/meson.build new file mode 100644 index 000000000..57aa29edb --- /dev/null +++ b/test cases/fortran/13 coarray/meson.build @@ -0,0 +1,10 @@ +project('Fortran coarray', 'fortran') + +# coarray is required because single-image fallback is an intrinsic feature +coarray = dependency('coarray', required : true) + +exe = executable('hello', 'main.f90', + dependencies : coarray) + +test('Coarray hello world', exe) + |
