1 ! RUN: %python %S/../test_symbols.py %s %flang_fc1 -fopenmp
3 ! 1.4.1 Structure of the OpenMP Memory Model
4 ! In the inner OpenMP region, SHARED `a` refers to the `a` in the outer OpenMP
5 ! region; PRIVATE `b` refers to the new `b` in the same OpenMP region
7 !DEF: /MainProgram1/b (Implicit) ObjectEntity REAL(4)
9 !$omp parallel private(a) shared(b)
10 !DEF: /MainProgram1/OtherConstruct1/a (OmpPrivate) HostAssoc REAL(4)
12 !DEF: /MainProgram1/OtherConstruct1/b (OmpShared) HostAssoc REAL(4)
14 !$omp parallel private(b) shared(a)
15 !DEF: /MainProgram1/OtherConstruct1/OtherConstruct1/a (OmpShared) HostAssoc REAL(4)
17 !DEF: /MainProgram1/OtherConstruct1/OtherConstruct1/b (OmpPrivate) HostAssoc REAL(4)
21 !DEF: /MainProgram1/a (Implicit) ObjectEntity REAL(4)