xref: /llvm-project/flang/test/Semantics/OpenMP/threadprivate07.f90 (revision 9f0e59f3c1a56fd14025df973c9f944010efe09a)
1! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
2
3! Check Threadprivate Directive with local variable of a BLOCK construct.
4
5program main
6  call sub1()
7  print *, 'pass'
8end program main
9
10subroutine sub1()
11  BLOCK
12    integer, save :: a
13    !$omp threadprivate(a)
14  END BLOCK
15end subroutine
16