Debian Codegraph @

gcc/testsuite/gfortran.dg/g77/970816-3.f

raw
1 c { dg-do run }
2 * Date: Wed, 13 Aug 1997 15:34:23 +0200 (METDST)
3 * From: Claus Denk <[email protected]>
4 * To: [email protected]
5 * Subject: 970811 report - segfault bug on alpha still there
6 *[...]
7 * Now, the bug that I reported some weeks ago is still there, I'll post
8 * the test program again:
9 *
10 PROGRAM TEST
11 C a bug in g77-0.5.21 - alpha. Works with NSTART=0 and segfaults with
12 C NSTART=1 on the second write.
13 PARAMETER (NSTART=1,NADD=NSTART+1)
14 REAL AB(NSTART:NSTART)
15 AB(NSTART)=1.0
16 I=1
17 J=2
18 IND=I-J+NADD
19 write(*,*) AB(IND)
20 write(*,*) AB(I-J+NADD)
21 END