2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g77.f-torture / execute / labug1.f
blob032fa41f8998b3e2c04812aae7ff57a70a42131b
1 PROGRAM LABUG1
3 * This program core dumps on mips-sgi-irix6.2 when compiled
4 * with egcs-19981101, egcs-19981109 and egcs-19981122 snapshots
5 * with -O2
7 * Originally derived from LAPACK test suite.
8 * Almost any change allows it to run.
10 * David Billinghurst, (David.Billinghurst@riotinto.com.au)
11 * 25 November 1998
13 * .. Parameters ..
14 INTEGER LDA, LDE
15 PARAMETER ( LDA = 2500, LDE = 50 )
16 COMPLEX CZERO
17 PARAMETER ( CZERO = ( 0.0E+0, 0.0E+0 ) )
19 INTEGER I, J, M, N
20 REAL V
21 COMPLEX A(LDA),B(LDA),C(LDA),E(LDE,LDE),F(LDE,LDE)
22 COMPLEX Z
24 N=2
25 M=1
27 do i = 1, m
28 do j = 1, n
29 e(i,j) = czero
30 f(i,j) = czero
31 end do
32 end do
34 DO J = 1, N
35 DO I = 1, M
36 V = ABS( E(I,J) - F(I,J) )
37 END DO
38 END DO
40 CALL SUB2(M,Z)
42 END
44 subroutine SUB2(I,A)
45 integer i
46 complex a
47 end