Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/allocators-4.f90

raw
1 integer, pointer :: ptr
2
3 !$omp allocators allocate(ptr)
4 allocate(ptr)
5 end
6
7 ! { dg-error "'!.OMP ALLOCATORS' at .1. requires '-fopenmp-allocators'" "" { target *-*-* } 3 }
8 ! { dg-warning "All files that might deallocate such a variable must be compiled with '-fopenmp-allocators'" "" { target *-*-* } 3 }
9 ! { 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 }