| 1 |
subroutine sub(var, var2) |
| 2 |
type t |
| 3 |
integer :: x |
| 4 |
end type t |
| 5 |
|
| 6 |
type t2 |
| 7 |
integer :: x |
| 8 |
integer, allocatable :: y |
| 9 |
end type |
| 10 |
|
| 11 |
class(t) var, var2 |
| 12 |
type(t2) :: var3, var4 |
| 13 |
!$omp target firstprivate(var) & ! { dg-error "Polymorphic list item 'var' at .1. in FIRSTPRIVATE clause has unspecified behavior and unsupported" } |
| 14 |
!$omp& private(var2) ! { dg-error "Polymorphic list item 'var2' at .1. in PRIVATE clause has unspecified behavior and unsupported" } |
| 15 |
var%x = 5 |
| 16 |
var2%x = 5 |
| 17 |
!$omp end target |
| 18 |
!$omp target firstprivate(var3) & ! { dg-error "Sorry, list item 'var3' at .1. with allocatable components is not yet supported in FIRSTPRIVATE clause" } |
| 19 |
!$omp& private(var4) ! { dg-error "Sorry, list item 'var4' at .1. with allocatable components is not yet supported in PRIVATE clause" } |
| 20 |
var3%x = 5 |
| 21 |
var4%x = 5 |
| 22 |
!$omp end target |
| 23 |
end |