2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g77.f-torture / execute / 970816-3.f
blob6398600f05988c21ca3f865c455331b0f04c7b0c
1 * Date: Wed, 13 Aug 1997 15:34:23 +0200 (METDST)
2 * From: Claus Denk <denk@cica.es>
3 * To: g77-alpha@gnu.ai.mit.edu
4 * Subject: 970811 report - segfault bug on alpha still there
5 *[...]
6 * Now, the bug that I reported some weeks ago is still there, I'll post
7 * the test program again:
9 PROGRAM TEST
10 C a bug in g77-0.5.21 - alpha. Works with NSTART=0 and segfaults with
11 C NSTART=1 on the second write.
12 PARAMETER (NSTART=1,NADD=NSTART+1)
13 REAL AB(NSTART:NSTART)
14 AB(NSTART)=1.0
15 I=1
16 J=2
17 IND=I-J+NADD
18 write(*,*) AB(IND)
19 write(*,*) AB(I-J+NADD)
20 END