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

    <tr>
        <th>Summary</th>
        <td>
            Missing ignored-attributes warning for `_Noreturn`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang:frontend
      </td>
    </tr>

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

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

<pre>
    ### Reproducer:

``` C
static union str {
    _Noreturn int f1;
} s;

static union str2 {
     __attribute__((__noreturn__)) int f1;
} s1;
```

### Current Behaviour
When the reproducer is compiled with top of tree clang, a warning is emitted for the `f1` field in `str2`: `warning: '__noreturn__' only applies to function types; type here is 'int' [-Wignored-attributes]`, but no such warning is emitted for `f1` in `str`.

Observed with both `-std=c99` and `-std=c18`.

### Expected Behaviour
The aforementioned warning (or similar) should also be emitted for `str2.f1`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1U02PnDAM_TXhYg2CMAzDgcPuTvfWVqoq9YgCGEiVSVA-drv_vg4zw350i6yAncR-79l0ZnhpGC8uBj9wsWYIPVpW3LHsxLLbesguBg-XgPPCyx6ClkaD8xZYdX_ZAXrab8aiD1aD1B7GnBXXTVadwL16n6bi73NB2wrvreyCx7Zl_EjWtvpaIEZqsk8LvXFv-N-R2ng_BGuREtzjLJ6kCfZy4NeMGvyMYDddQDrozXmRCgd4ln4GbxYwI3iLCL0SemL8AQQ8C6ulnuJ5PEvv6fho7JqNYBBS0nKUqAZCHiOReMRX3EXvenv1ePWebgVGqxcQy6IkOqoPY9C9j-r5lwWjvOsHzGgx1qcrpE68yMr73S85xWzDblPVsfIUSxNuckEbcKGf_8dgQ7_hpjV9q-v3zqF9uunTGVroyM75gRWnvq7jZaGHt8H8-DHJa3O-_Fmwj9U_dOcnSSkIEZ6pdcQ-FrxCphEhpE6epRI2ToebTSCphXIGOvzIJ2qfrqTSBJv8UNZZnR3rfTI0xVAXtUi89Aqbr9K5VZF_FNwqXzNuPwB9J8GqZvZ-cfGn4o9kEwkTupQGiRylnm6vHY3ZbyJLLpUK1Bn-WB6OWZbMzZCPVY1Y1gVWXVkf6mqsMOt4Po5VlR_3iRIdKtdQjxnnl0ks7kZrtEc9UIi6nMiGZ5xnFa_zrNiXRbof93zsRDHw41D0ObJ9hmchVRrhpMZOiW1WZF2YHG0q6bx73RQkyKQR16qUXwQ_G9uYM1qdJyuHZiXwFyfhW6c">