1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
3 ! 2.15.3 Data-Sharing Attribute Clauses
4 ! 2.15.3.1 default Clause
6 subroutine default_none()
8 integer, parameter :: D
=10
11 !$omp parallel default(none) private(c)
12 !ERROR: The DEFAULT(NONE) clause requires that 'a' must be listed in a data-sharing attribute clause
14 !ERROR: The DEFAULT(NONE) clause requires that 'b' must be listed in a data-sharing attribute clause
18 end subroutine default_none
20 ! Test that indices of sequential loops are privatised and hence do not error
22 subroutine default_none_seq_loop
25 !$omp parallel do default(none)
34 call default_none_seq_loop()
35 !TODO: private, firstprivate, shared