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

    <tr>
        <th>Summary</th>
        <td>
            "multi-character character constant" warning is not displayed for 4-character constants
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Hi all,

I found an inconsistency in the warning of multi-character constants. In the following code, the first 2 cases produce a warning while the third one does not:

```
int x2 = '\x12\x34';
int x3 = '\x12\x34\x56';
int x4 = '\x12\x34\x56\x78';
```

This code outputs

```
<source>:3:10: warning: multi-character character constant [-Wmultichar]
    3 | int x2 = '\x12\x34';
      |          ^
<source>:4:10: warning: multi-character character constant [-Wmultichar]
    4 | int x3 = '\x12\x34\x56';
```

See compiler explorer: https://godbolt.org/z/Ehrzjqjxh

gcc is showing 3 warnings.


</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysk81u4zgMgJ-GvhAJZEqOnYMPblpje94F9izLSqxCkbyS3KR9-oWdNp1pipkeRgjiH34mPlKijNEcnNY1FHdQ3GdySoMPdUzBHD0vq6zz_Uv9l0FpLdAOWAOsecS9n1yP0qFxyrtoYtJOvaBxmAaNJxmccQf0ezxONpmVGmSQKumAM52kS3GNjxd47631pxlXvtdAu8tbE2JCQiWjjjgG309Ko7ymPg3G6oVMgwk9eqex9zqi8wl4c_GEDXv7sca4hGdC4PcIVEKxO-c0_3MxP_K7d4R_iRS7c7H5GRS_AIvduayu-I8awJp_BhOXWtFPaZxSvJUFvot-CkoDfwDecOBNzoA37-XPtzedvekxQnG3-nfh5iAU98AaRESOUO7wGx3BZc3wdUHxcCso_rCg-BD8zn58avDfWqPyx9FYHVCfR-uDDrPRkNIY59NBLVB78H3nbVr7cABqX4HahyG8Pv33dB4ueQ5KoYkYh8vx5O_FxfUlnvU177d8KzNd56UoNttqu6VsqKVUYlsKxcu82lC_p4opyeWGb1UnxJ5npiZGBRO0IUY8p3XJq4pVXHCZs64XGxBMH6Wxa2ufj7NhZmKcdJ3zUpR5ZmWnbVxmlsjpEy5RIJpHONTzR6tuOkQQzJqY4keaZJLVNRD9fneA6DpuZhks7E0crXzRPe59QPHVXGdTsPWnRps0TN1a-SNQO5u8XVZj8E9aJaB28Y9A7VuBzzX9HwAA__99RWST">