1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
4 ! 2.8.1 sections construct
5 ! Orphaned section directives are prohibited. That is, the section directives must appear within the sections construct and must not be encountered elsewhere in the sections region
6 !TODO: Error in parsing. Make parser errors more informative. Until then, the test is XFAIL
8 program OmpOrphanedSections
12 !CHECK: expected 'END'
13 !CHECK: END PROGRAM statement
14 !CHECK: in the context: main program
15 !CHECK: expected 'END PROGRAM'
16 !CHECK: in the context: END PROGRAM statement
17 !CHECK: in the context: main program
19 print *, "An orphaned section containing a single statement"
22 print *, "An orphaned section containing multiple statements"
25 print *, "Not an orphan structured block"
27 end program OmpOrphanedSections