Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/init_flag_4.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 |
rev | line source |
---|---|
111 | 1 ! { dg-do run } |
2 ! { dg-options "-finit-real=inf" } | |
3 ! { dg-add-options ieee } | |
4 | |
5 program init_flag_4 | |
6 call real_test | |
7 end program init_flag_4 | |
8 | |
9 ! Test some initializations for both implicitly and | |
10 ! explicitly declared local variables. | |
11 subroutine real_test | |
12 real r1 | |
13 real r2(10) | |
14 dimension r3(10,10) | |
131 | 15 if (r1 .le. 0 .or. r1 .ne. 2*r1) STOP 1 |
16 if (r2(2) .le. 0 .or. r2(2) .ne. 2*r2(2)) STOP 2 | |
17 if (r3(5,5) .le. 0 .or. r3(5,5) .ne. 2*r3(5,5)) STOP 3 | |
18 if (r4 .le. 0 .or. r4 .ne. 2*r4) STOP 4 | |
111 | 19 end subroutine real_test |