Debian Codegraph @

libgomp/testsuite/libgomp.fortran/allocate-3.f90

raw
1 ! { dg-do compile }
2
3 use omp_lib
4 implicit none
5 integer :: q, x,y,z
6
7 !$omp parallel allocate(align ( 64 ) x) ! { dg-error "37:Expected ':' at" }
8 !$omp parallel allocate(align ( 64 ), x) ! { dg-error "37:Expected ':' at" }
9 !$omp parallel allocate(allocator ( omp_high_bw_mem_alloc ) x) ! { dg-error "60:Expected ':' at" }
10 !$omp parallel allocate(allocator ( omp_high_bw_mem_alloc ) , x) ! { dg-error "60:Expected ':' at" }
11
12 !$omp parallel allocate( omp_high_bw_mem_alloc, align(12) : x) ! { dg-error "26:Expected variable list at" }
13 !$omp parallel allocate( align(12), omp_high_bw_mem_alloc : x) ! { dg-error "35:Expected ':' at" }
14
15 !$omp parallel allocate( omp_high_bw_mem_alloc x) ! { dg-error "26:Expected variable list at" }
16
17 !$omp parallel allocate( omp_high_bw_mem_alloc , x) firstprivate(x) ! { dg-error "'omp_high_bw_mem_alloc' specified in 'allocate' clause at \\(1\\) but not in an explicit privatization clause" }
18 ! { dg-error "Object 'omp_high_bw_mem_alloc' is not a variable" "" { target *-*-* } .-1 }
19 !$omp end parallel
20
21 !$omp parallel allocate( omp_high_bw_mem_alloc , x) firstprivate(x, omp_high_bw_mem_alloc)
22 ! { dg-error "Object 'omp_high_bw_mem_alloc' is not a variable" "" { target *-*-* } .-1 }
23 !$omp end parallel
24
25 !$omp parallel allocate( align(128) : x) firstprivate(x) ! OK
26 !$omp end parallel
27
28 end