re PR fortran/78741 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1534)
[official-gcc.git] / gcc / testsuite / gfortran.dg / goacc / asyncwait-4.f95
blobdf311545c52f7137741c62152a7b2dddb38cce65
1 ! { dg-do compile }
3 program asyncwait
4 integer, parameter :: N = 64
5 real, allocatable :: a(:), b(:)
6 integer i
8 allocate (a(N))
9 allocate (b(N))
11 a(:) = 3.0
12 b(:) = 0.0
14 !$acc wait async (1 2) ! { dg-error "Unclassifiable OpenACC directive" }
16 !$acc wait async (1,) ! { dg-error "Unclassifiable OpenACC directive" }
18 !$acc wait async (,1) ! { dg-error "Invalid character in name" }
20 !$acc wait async (1, 2, ) ! { dg-error "Unclassifiable OpenACC directive" }
22 !$acc wait async (1, 2, ,) ! { dg-error "Unclassifiable OpenACC directive" }
24 !$acc wait async (1 ! { dg-error "Unclassifiable OpenACC directive" }
26 !$acc wait async (1, *) ! { dg-error "Unclassifiable OpenACC directive" }
28 !$acc wait async (1, a) ! { dg-error "Unclassifiable OpenACC directive" }
30 !$acc wait async (a) ! { dg-error "ASYNC clause at \\\(1\\\) requires a scalar INTEGER expression" }
32 !$acc wait async (N)
34 !$acc wait async (1.0) ! { dg-error "ASYNC clause at \\\(1\\\) requires a scalar INTEGER expression" }
36 !$acc wait async 1 ! { dg-error "Unclassifiable OpenACC directive" }
38 !$acc waitasync ! { dg-error "Unclassifiable OpenACC directive" }
40 !$acc wait,async ! { dg-error "Unclassifiable OpenACC directive" }
41 end program asyncwait