OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [where_nested_1.f90] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
! PR 25423: Nested WHERE constructs.
3
program nested_where
4
 
5
    implicit none
6
    integer :: a(4)
7
    logical :: mask1(4) = (/.TRUE., .TRUE., .FALSE., .FALSE./), &
8
               mask2(4) = (/.TRUE., .FALSE., .TRUE., .FALSE./)
9
 
10
    where (mask1)
11
        where (mask2)
12
            a = 1
13
        elsewhere
14
            a = 2
15
        end where
16
    elsewhere
17
        where (mask2)
18
            a = 3
19
        elsewhere
20
            a = 4
21
        end where
22
    end where
23
 
24
    print *, a
25
 
26
end program nested_where

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.