1 ! RUN: %python %S/../test_symbols.py %s %flang_fc1 -fopenmp
3 ! 2.15.3.6 Reduction Clause Positive cases.
4 !DEF: /omp_reduction MainProgram
6 !DEF: /omp_reduction/i ObjectEntity INTEGER(4)
8 !DEF: /omp_reduction/k ObjectEntity INTEGER(4)
10 !DEF: /omp_reduction/a ObjectEntity INTEGER(4)
12 !DEF: /omp_reduction/b ObjectEntity INTEGER(4)
15 !$omp parallel shared(k)
16 !$omp do reduction(+:k)
17 !DEF: /omp_reduction/OtherConstruct1/OtherConstruct1/i (OmpPrivate, OmpPreDetermined) HostAssoc INTEGER(4)
19 !DEF: /omp_reduction/OtherConstruct1/OtherConstruct1/k (OmpReduction) HostAssoc INTEGER(4)
26 !$omp parallel do reduction(+:a(10))
27 !DEF: /omp_reduction/OtherConstruct2/i (OmpPrivate, OmpPreDetermined) HostAssoc INTEGER(4)
29 !DEF: /omp_reduction/OtherConstruct2/k HostAssoc INTEGER(4)
35 !$omp parallel do reduction(+:a(1:10:1))
36 !DEF: /omp_reduction/OtherConstruct3/i (OmpPrivate, OmpPreDetermined) HostAssoc INTEGER(4)
38 !DEF: /omp_reduction/OtherConstruct3/k HostAssoc INTEGER(4)
43 !$omp parallel do reduction(+:b(1:10:1,1:5,2))
44 !DEF: /omp_reduction/OtherConstruct4/i (OmpPrivate, OmpPreDetermined) HostAssoc INTEGER(4)
46 !DEF: /omp_reduction/OtherConstruct4/k HostAssoc INTEGER(4)
51 !$omp parallel do reduction(+:b(1:10:1,1:5,2:5:1))
52 !DEF: /omp_reduction/OtherConstruct5/i (OmpPrivate, OmpPreDetermined) HostAssoc INTEGER(4)
54 !DEF: /omp_reduction/OtherConstruct5/k HostAssoc INTEGER(4)
59 !$omp parallel private(i)
60 !$omp do reduction(+:k) reduction(+:j)
61 !DEF: /omp_reduction/OtherConstruct6/OtherConstruct1/i (OmpPrivate, OmpPreDetermined) HostAssoc INTEGER(4)
63 !DEF: /omp_reduction/OtherConstruct6/OtherConstruct1/k (OmpReduction) HostAssoc INTEGER(4)
69 !$omp do reduction(+:k) reduction(*:j) reduction(+:l)
70 !DEF: /omp_reduction/OtherConstruct7/i (OmpPrivate, OmpPreDetermined) HostAssoc INTEGER(4)
72 !DEF: /omp_reduction/OtherConstruct7/k (OmpReduction) HostAssoc INTEGER(4)
76 end program omp_reduction