OSDN Git Service

* lib/gcc-dg.exp (cleanup-modules): New proc.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / g77 / 19990826-2.f
1 c { dg-do run }
2 * From: "Billinghurst, David (RTD)" <David.Billinghurst@riotinto.com.au>
3 * Subject: RE: single precision complex bug in g77 - was Testing g77 with LA
4 * PACK 3.0
5 * Date: Thu, 8 Jul 1999 00:55:11 +0100 
6 * X-UIDL: b00d9d8081a36fef561b827d255dd4a5
7
8 * Here is a slightly simpler and neater test case
9
10       program labug3
11       implicit none
12
13 *  This program gives the wrong answer on mips-sgi-irix6.5
14 *  when compiled with g77 from egcs-19990629 (gcc 2.95 prerelease)
15 *  Get a = 0.0 when it should be 1.0 
16 *
17 *  Works with:  -femulate-complex
18 *               egcs-1.1.2 
19 *
20 *  Originally derived from LAPACK 3.0 test suite.
21 *
22 *  David Billinghurst, (David.Billinghurst@riotinto.com.au)
23 *  8 July 1999
24
25       complex one, z
26       real    a, f1
27       f1(z) = real(z)
28       one = (1.,0.)
29       a = f1(one) 
30       if ( abs(a-1.0) .gt. 1.0e-5 ) then
31          write(6,*) 'A should be 1.0 but it is',a
32          call abort()
33       end if
34       end