Debian Codegraph @

flang/test/Semantics/OpenMP/allocate04.f90

raw
1 ! REQUIRES: openmp_runtime
2
3 ! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
4 ! OpenMP Version 5.0
5 ! 2.11.3 allocate Directive
6 ! Only the allocator clause is allowed on the allocate directive
7 subroutine allocate()
8 use omp_lib
9
10 integer :: x, y
11
12 !$omp allocate(x) allocator(omp_default_mem_alloc)
13
14 !ERROR: PRIVATE clause is not allowed on the ALLOCATE directive
15 !$omp allocate(y) private(y)
16 end subroutine allocate