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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [libgomp/] [testsuite/] [libgomp.fortran/] [nestedfn3.f90] - Blame information for rev 867

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
! PR middle-end/28790
2
! { dg-do run }
3
 
4
program nestomp
5
  integer :: j
6
  j = 8
7
  call bar
8
  if (j.ne.10) call abort
9
contains
10
  subroutine foo (i)
11
    integer :: i
12
  !$omp atomic
13
    j = j + i - 5
14
  end subroutine
15
  subroutine bar
16
  use omp_lib
17
  integer :: i
18
  i = 6
19
  call omp_set_dynamic (.false.)
20
  !$omp parallel num_threads (2)
21
    call foo(i)
22
  !$omp end parallel
23
  end subroutine
24
end

powered by: WebSVN 2.1.0

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