summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/g77/le.f
blob: c62ac46cd0f4093082665bbbff8586a280ea83f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
c { dg-do run }
      program fool

      real     foo
      integer  n
      logical  t

      foo = 2.5
      n = 5

      t = (n > foo)
      if (t .neqv. .true.) call abort
      t = (n >= foo)
      if (t .neqv. .true.) call abort
      t = (n < foo)
      if (t .neqv. .false.) call abort
      t = (n <= 5)
      if (t .neqv. .true.) call abort
      t = (n >= 5 )
      if (t .neqv. .true.) call abort
      t = (n == 5)
      if (t .neqv. .true.) call abort
      t = (n /= 5)
      if (t .neqv. .false.) call abort
      t = (n /= foo)
      if (t .neqv. .true.) call abort
      t = (n == foo)
      if (t .neqv. .false.) call abort

      end