On Thu, 19 Oct 2017, Andreas Krebbel wrote:

>  gcc/testsuite/gcc.dg/pragma-exec_charset-1.c | 26 +++++++++++++++

I'd expect a c-c++-common test rather than a C-specific one, given there 
are significant differences in how the C and C++ front ends handle lexing.

> +#pragma GCC exec_charset("UTF16")
> +call_with_utf16("hello world");

I don't think UTF16 makes sense as an example, as it's not a multibyte 
character set (characters are 16-bit, and with 8-bit bytes that means many 
characters contain NUL bytes, which is not allowed for multibyte character 
sets).

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to