1 ! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3 ! OpenMP Atomic construct
5 ! operator is one of +, *, -, /, .AND., .OR., .EQV., or .NEQV
18 !$omp parallel num_threads(4)
29 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
32 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
35 !ERROR: Atomic update variable 'l' not found in the RHS of the assignment statement in an ATOMIC (UPDATE) construct
36 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
39 !ERROR: Atomic update variable 'l' not found in the RHS of the assignment statement in an ATOMIC (UPDATE) construct
40 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
43 !ERROR: Atomic update variable 'l' not found in the RHS of the assignment statement in an ATOMIC (UPDATE) construct
44 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
47 !ERROR: Atomic update variable 'l' not found in the RHS of the assignment statement in an ATOMIC (UPDATE) construct
48 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
51 !ERROR: Atomic update variable 'l' not found in the RHS of the assignment statement in an ATOMIC (UPDATE) construct
52 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
55 !ERROR: Atomic update variable 'l' not found in the RHS of the assignment statement in an ATOMIC (UPDATE) construct
56 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
75 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
78 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
81 !ERROR: Atomic update variable 'l' not found in the RHS of the assignment statement in an ATOMIC (UPDATE) construct
82 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
85 !ERROR: Atomic update variable 'l' not found in the RHS of the assignment statement in an ATOMIC (UPDATE) construct
86 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
89 !ERROR: Atomic update variable 'l' not found in the RHS of the assignment statement in an ATOMIC (UPDATE) construct
90 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
93 !ERROR: Atomic update variable 'l' not found in the RHS of the assignment statement in an ATOMIC (UPDATE) construct
94 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
97 !ERROR: Atomic update variable 'l' not found in the RHS of the assignment statement in an ATOMIC (UPDATE) construct
98 !ERROR: Invalid operator in OpenMP ATOMIC (UPDATE) statement
109 end program OmpAtomic