Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/team_number_1.f90 @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } ! { dg-options "-fcoarray=single" } ! ! Tests if team_number intrinsic fucntion works ! use iso_fortran_env, only : team_type implicit none type(team_type) team integer, parameter :: standard_initial_value=-1 integer new_team if (team_number()/=standard_initial_value) STOP 1 new_team = mod(this_image(),2)+1 form team (new_team,team) change team (team) if (team_number()/=new_team) STOP 2 end team if (team_number()/=standard_initial_value) STOP 3 end