|
| 1 | +! |
| 2 | +! acceptable_compiler |
| 3 | +! |
| 4 | +! -- Report whether the compiler version equals or exceeds the first |
| 5 | +! OpenCoarrays-aware version |
| 6 | +! |
| 7 | +! OpenCoarrays is distributed under the OSI-approved BSD 3-clause License: |
| 8 | +! Copyright (c) 2015, Sourcery, Inc. |
| 9 | +! Copyright (c) 2015, Sourcery Institute |
| 10 | +! All rights reserved. |
| 11 | +! |
| 12 | +! Redistribution and use in source and binary forms, with or without modification, |
| 13 | +! are permitted provided that the following conditions are met: |
| 14 | +! |
| 15 | +! 1. Redistributions of source code must retain the above copyright notice, this |
| 16 | +! list of conditions and the following disclaimer. |
| 17 | +! 2. Redistributions in binary form must reproduce the above copyright notice, this |
| 18 | +! list of conditions and the following disclaimer in the documentation and/or |
| 19 | +! other materials provided with the distribution. |
| 20 | +! 3. Neither the names of the copyright holders nor the names of their contributors |
| 21 | +! may be used to endorse or promote products derived from this software without |
| 22 | +! specific prior written permission. |
| 23 | +! |
| 24 | +! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 25 | +! ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 26 | +! WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 27 | +! IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| 28 | +! INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 29 | +! NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 30 | +! PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 31 | +! WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 32 | +! ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 33 | +! POSSIBILITY OF SUCH DAMAGE. |
| 34 | + |
1 | 35 | program main
|
2 | 36 | use iso_fortran_env, only : compiler_version
|
3 | 37 | implicit none
|
4 |
| - print *,compiler_version() >= " GCC version 5.1.0" |
| 38 | + print *,compiler_version() >= "GCC version 5.1.0 " |
5 | 39 | end program
|
0 commit comments