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

    <tr>
        <th>Summary</th>
        <td>
            `returns_nonnull` cannot be applied to function pointers
        </td>
    </tr>

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

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

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

<pre>
    Example:

https://godbolt.org/z/azrsxE7o8

It works fine on function declarations.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckNFu3iAMhZ8GblAjA-HPnwsuNrWR9hSTCTRhIxBh2No-_ZSqU6fd2JblI3_nIFHccgiWma_MPHLsbS_VvtLeI3fFv9qnFzzOFJj-wuCRwUfdWzvp2qmFqWUr3pXUhlI3ppY3phZ8q_TyNJX7v6JvTfwu9SeJ55iDKFk897y2WLLwYU1Y8Zpp4N5qP-sZebBygsmY0YDku_WTW1E6M09OO33TOCuU7o4zgFKgJY9WgRpBSYD7KEc5aK2lMuq2jhNKD8hGCAfGNKT067hweSTqwd6lNsATupDobxTVXkcPrm_ERkiRGn3KWmwpWHaDGlqvmb7nknNPid1ArJhzacIFgeeZYvCilU-rZ4m5hUq812T_izG2vbthLQdTy_Xqoz2ctfwIa2NqecclppZ34j8BAAD__yUUjeY">