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

    <tr>
        <th>Summary</th>
        <td>
            [OpenMP][5.1] `taskwait nowait` should allow multiple `depend` clauses
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            openmp
      </td>
    </tr>

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

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

<pre>
    We assert as we expect a single depend clause to check if `nowait` is legal. Minor oversight.

https://godbolt.org/z/34fEzK7fe
```
void t(int a, int b) {
#pragma omp taskwait nowait depend(inout: a) depend(out: b)
}
```

See also: https://github.com/SOLLVE/sollve_vv/blob/master/tests/5.1/taskwait/test_task_nowait.c
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8Ul9rpT4Q_TTjy1CJ8c_VBx_a360vv5YuFHYfSzSjpo1Gkmh3--mX3Bu2UJYFic6Yczhn5gjn1LQStVDeAeev0pAdyXrgHMpzInY_G9v-aSe9kb_aH4TCObIehcN3Qvq50eBRoFPrpAklbbRKHLTYHaE3OMw0vKEaESq2mnehPFQMlUNNk9ApPqrVWDQHWaem2afAzsBur-fs_eYgvwXeAe8mI3ujfWrsBLz7AN7lxXj_8f9ppAiqWHwu5WGURA-8VqtHAfw_DB898AbhdBchPN-smBaBZtnQC_cWFOJVaDRzYTC7h_w20DSf7dgMlJHudP6rlOv5TIRCOxMwX6wpP-99OpgFePf89PDw_R5454zWB70cB_Cu16YH3i3CebLAO0_OO-BdmWahisLjj5dQv1xNpEMi21w2eSMSarPqlBdVVpYsmdtmzJmoGNXZqS9okHIcGcm6aJhsGkYsUS1nPGdZlmU1L0uWyrrJ6qwoynoceFETFIwWoXSq9bGExSTKuZ3asmmKLNGiJ-1ivMxG67LFbNk2AG76fXJQMK2cd58UXnl9CeXTRuvjNyjPUN4Fn-U5hOjLkkKa3Gx2LVFobd5x2bVXm6ZwN26qYjGQLtmtbv8x-yAivm42a15pCDO9mLpMO_j6HQAA__-CKADC">