<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54886>54886</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`#if u8'\xff' != 0xff` fails in the preprocessor unless -funsigned-char is specified
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
tbaederr
</td>
</tr>
</table>
<pre>
From a discussion in https://reviews.llvm.org/D119221:
The following test case print the error, unless `-funsigned-char` is specified:
```c++
#if u8'\xff' != 0xff
#error uh oh
#endif
```
See also: https://godbolt.org/z/Tb7z85ToG
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFUkuS2yAQPQ3aUHYhsH4LFsm4JgeIL4CgsZjCQkXDOJnTB8lOJtEmVS2pP-j169eMwfyUrzHcqKLGoc6ILszUzXRKaUEivhD-WizCu4M7Hr1_vx1DvJbUua4Hzuv1CDsT9nxfJqA2eB_ubr7SBJioVgh0iW5ONJUqxBgi4S80zx4QKWnZweYZ3XUGc9CTiiVDHVJcQDvrwOxalPLDNOFfV3tkuXCW5p7wjjQvP6wtDiUrvzNla_j71Naf5omG6TM3G2d36H-3_A5AlcdQmOyEuQYzBp-emnyU5zJ2H31zCd8ev1ZGCjOIQVXJJQ9yRf4f1TK_Vc7juodVsiXCEoMuaq3MH7LtNPtHsCpHL3c8XZryeNThVoJ1i8_PoQC_gU4ldIgZsDjNqe_bapJGg-3GoW06wXpjBNP90A0Na5VlrBF95dUIHiVpyhr4DHe6QRSfNOfKSc44Z6dasLbuRH00tRqNNW1trBA1nMiJwa2M-edSVVFulMZ8xVL0DtPnjasUbuPC1q7gq5ymEGUaFZiy02rrLTfuvwDXH91M">