<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/93342>93342</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Flang][OpenMP] Add a proper test for orphaned section directive
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            flang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          kiranchandramohan
      </td>
    </tr>
</table>

<pre>
    Section directive should appear in the sections construct. It cannot appear as orphaned directives. This is currently caught in parsing but there is no graceful error.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckcGO3CAQRL8GX1precDM2gcOuxpZyiFKpOQH2sAYEgasbhhp_z7ybKKRcoLD6ypVFTLHLXtvhH4X-tJhq6GQ-R0Jsw2YHeGtBMzdWtyH-eFtjSWDi3T87h44lJYc4L57JIgZavDAnxiDLZkrNVt7-FLBYs6l_mORodAeMHv31OMefobIEBlsI_K5pg-w2LZQD_EdiWPeYG31MCJ_gLnARmj9tSXwRIX6zhnlZjVj583p9XTW00nNugtm9NZqN12tm5xCq19xnZWa1NW-KinPtotGDnIctBzlMMxa99PZ4mn0iOfpLIdZinHwN4ypT-l-6wttXWRu3sxKjbJLuPrEjy6lvCbMm5DyqJXMwb-sbWMxDily5adCjTU9BlgeF_oi9Pu33eev34W-wJtzgLBT2T1B9VzhWuhZHf8_SdcomVDrzkK9CbkIuWyxhrb2ttyEXA7bv8_LTuWXt1XI5ZGChVw-g9yN_BMAAP__tKO1Ig">