gcc/testsuite/gfortran.dg/gomp/allocate-16.f90
raw| 1 | integer, pointer :: ptr |
| 2 | |
| 3 | !$omp flush |
| 4 | !$omp allocate(ptr) |
| 5 | allocate(ptr) |
| 6 | end |
| 7 | |
| 8 | ! { dg-error "'!.OMP ALLOCATE' at .1. requires '-fopenmp-allocators'" "" { target *-*-* } 4 } |
| 9 | ! { dg-warning "All files that might deallocate such a variable must be compiled with '-fopenmp-allocators'" "" { target *-*-* } 4 } |
| 10 | ! { dg-note "This includes explicit DEALLOCATE, reallocation on intrinsic assignment, INTENT\\(OUT\\) for allocatable dummy arguments, and reallocation of allocatable components allocated with an OpenMP allocator" "" { target *-*-* } 0 } |