Debian Codegraph @

gcc/testsuite/gfortran.dg/goacc/asyncwait-4.f95

raw
1 ! { dg-do compile }
2
3 program asyncwait
4 integer, parameter :: N = 64
5 real, allocatable :: a(:), b(:)
6 integer i
7
8 allocate (a(N))
9 allocate (b(N))
10
11 a(:) = 3.0
12 b(:) = 0.0
13
14 !$acc wait async (1 2) ! { dg-error "Failed to match clause" }
15
16 !$acc wait async (1,) ! { dg-error "Failed to match clause" }
17
18 !$acc wait async (,1) ! { dg-error "Invalid character in name" }
19
20 !$acc wait async (1, 2, ) ! { dg-error "Failed to match clause" }
21
22 !$acc wait async (1, 2, ,) ! { dg-error "Failed to match clause" }
23
24 !$acc wait async (1 ! { dg-error "Failed to match clause" }
25
26 !$acc wait async (1, *) ! { dg-error "Failed to match clause" }
27
28 !$acc wait async (1, a) ! { dg-error "Failed to match clause" }
29
30 !$acc wait async (a) ! { dg-error "ASYNC clause at \\\(1\\\) requires a scalar INTEGER expression" }
31
32 !$acc wait async (N)
33
34 !$acc wait async (1.0) ! { dg-error "ASYNC clause at \\\(1\\\) requires a scalar INTEGER expression" }
35
36 !$acc wait async 1 ! { dg-error "Failed to match clause" }
37
38 !$acc waitasync ! { dg-error "Failed to match clause" }
39
40 !$acc wait,async ! { dg-error "Failed to match clause" }
41 end program asyncwait