gcc/testsuite/gfortran.dg/gomp/pr52531.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! PR fortran/52531 |
| 3 | module test_mod |
| 4 | type, public :: test_type |
| 5 | end type |
| 6 | contains |
| 7 | subroutine foo(bar) |
| 8 | type(test_type) :: bar |
| 9 | !$omp parallel default(none) shared(bar) ! Compiles if one removes default(none) |
| 10 | call question(bar) |
| 11 | !$omp end parallel |
| 12 | end subroutine |
| 13 | subroutine question(var) |
| 14 | class(test_type), intent(in) :: var ! Compiles if one replaces class by type |
| 15 | end subroutine |
| 16 | end module |